www.rjsoftware.se Forum Index www.rjsoftware.se
Discuss software found at the RJ Software site.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FIXED: Opening in Hex Editor from command line

 
Post new topic   Reply to topic   TextEd Homesite »  www.rjsoftware.se Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
H.Seldon



Joined: 21 May 2009
Posts: 51

PostPosted: Tue Mar 02, 2010 6:41 pm    Post subject: FIXED: Opening in Hex Editor from command line Reply with quote

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
View user's profile Send private message
Rickard Johansson
Site Admin


Joined: 19 Jul 2006
Posts: 1950

PostPosted: Wed Mar 03, 2010 10:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
H.Seldon



Joined: 21 May 2009
Posts: 51

PostPosted: Thu Mar 04, 2010 2:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Rickard Johansson
Site Admin


Joined: 19 Jul 2006
Posts: 1950

PostPosted: Thu Mar 04, 2010 3:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
H.Seldon



Joined: 21 May 2009
Posts: 51

PostPosted: Thu Mar 04, 2010 8:28 pm    Post subject: Reply with quote

O.K. Thanks again for all your hard work.
Back to top
View user's profile Send private message
Rickard Johansson
Site Admin


Joined: 19 Jul 2006
Posts: 1950

PostPosted: Fri Mar 05, 2010 10:34 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
H.Seldon



Joined: 21 May 2009
Posts: 51

PostPosted: Fri Mar 05, 2010 6:38 pm    Post subject: Reply with quote

This is great! Thanks again!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.rjsoftware.se Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group