ReplInFiles in HEX Mode

Find, replace, find in files, replace in files, regular expressions

ReplInFiles in HEX Mode

Postby cbf74 » Fri Jul 21, 2006 7:13 am

Hi people,

I need to replace lot of files i need to open in HEX mode and replace a hex characters for others. I try the following macro but seems not to work.
Someone can help

thanks.

The macro i'm trying is the following:

InsertMode
ColumnModeOff
HexOn
UnixReOff
ReplInFiles "WinOutput" "" "E:\Profiles\" "*.spf" "4D 00"
"73 00"


The last string between "" is in a different line.
I put the HexOn at the begining.
my version is 11.00
The string searched and replaced is expressed in HEX.

Thanks.
User avatar
cbf74
Newbie
 
Posts: 2
Joined: Thu Jul 20, 2006 11:00 pm

Re: ReplInFiles in HEX Mode

Postby Mofi » Fri Jul 21, 2006 8:33 am

The ReplInFiles command cannot be used to replace in HEX. Replace In All is only for text string replaces. Also Replace In All does not open the files into the edit window because it is a disk based only command. So HexOn is useless.

Replace In All can be used to replace a string which also contains control characters in the range of 0x01 til 0x1F by opening a file in text mode which already contains the search and replace string and copying the strings from the edit window into the find/replace dialog. But 0x00 cannot be specified in or copied to the text find/replace dialogs because 0x00 is the string termination character.

Maybe XCHANG32.EXE from Clay's Utilities is helpful for you to do this job.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4056
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: ReplInFiles in HEX Mode

Postby cbf74 » Fri Jul 21, 2006 1:56 pm

Thanks you Mofi for you instant reply, you save me, that program was the one i was looking, it's perfect for what i need to do.

Hugs from Spain,
cbf74
User avatar
cbf74
Newbie
 
Posts: 2
Joined: Thu Jul 20, 2006 11:00 pm


Return to Find/Replace/Regular Expressions