| View previous topic :: View next topic |
| Author |
Message |
H.Seldon
Joined: 21 May 2009 Posts: 51
|
Posted: Tue Mar 02, 2010 6:41 pm Post subject: FIXED: Opening in Hex Editor from command line |
|
|
| The /HEX parameter does not appear to be working. I can only load obvious binaries (e.g. .exe, .dll), which load in hex anyway without adding the /HEX parameter. I tried adding the parameter both before and after the file/files to be loaded. Am I doing something wrong? My aim is to be able to add this to the context menu, so I can right-click on a file and open it in the hex editor. It's annoying to have to use the "File/Open in Hex Editor" dialog and locate the file to load. |
|
| Back to top |
|
 |
Rickard Johansson Site Admin
Joined: 19 Jul 2006 Posts: 1950
|
Posted: Wed Mar 03, 2010 10:03 pm Post subject: |
|
|
I can't reproduce your issue. I have no problem with the /HEX switch.
What happens when you open a file using the /HEX switch? |
|
| Back to top |
|
 |
H.Seldon
Joined: 21 May 2009 Posts: 51
|
Posted: Thu Mar 04, 2010 2:09 am Post subject: |
|
|
I can only open certain files in hex editor from command line. For example, .exe, .dll, .bpl. However, these files open in hex editor automatically, without the /hex switch. I thought the /hex switch would allow opening any file in hex editor. For example, if I specify, from the RJ TextEd folder, "texted readme.txt /hex", it loads the file in the normal editor as text instead of in the hex editor. So far, the only files I have been able to open in hex editor,from command line, are files that would open in hex editor automatically, withouit the switch.
Another example. From RJ TextEd folder I specify "texted help\texted.chm /hex" from command line. The file opens in the normal editor with control characters removed. |
|
| Back to top |
|
 |
Rickard Johansson Site Admin
Joined: 19 Jul 2006 Posts: 1950
|
Posted: Thu Mar 04, 2010 3:15 pm Post subject: |
|
|
| You're right, there is something wrong in v6.0. But I couldn't reproduce it in the current version I'm working on. I may have fixed it a few weeks ago. I'll do some more testing just to be sure... |
|
| Back to top |
|
 |
H.Seldon
Joined: 21 May 2009 Posts: 51
|
Posted: Thu Mar 04, 2010 8:28 pm Post subject: |
|
|
| O.K. Thanks again for all your hard work. |
|
| Back to top |
|
 |
Rickard Johansson Site Admin
Joined: 19 Jul 2006 Posts: 1950
|
Posted: Fri Mar 05, 2010 10:34 am Post subject: |
|
|
It's been fixed.
You have to position the /HEX flag before the file name though. This because you can actually open files as both text and binary files.
E.g.
TextEd.exe Text01.txt /HEX Text02.txt
Text01.txt will be opened as a plain text file and
Text02.txt as a binary file. |
|
| Back to top |
|
 |
H.Seldon
Joined: 21 May 2009 Posts: 51
|
Posted: Fri Mar 05, 2010 6:38 pm Post subject: |
|
|
| This is great! Thanks again! |
|
| Back to top |
|
 |
|