Time to give something back.
I saw some posts a while ago asking about this so here is my solution
I have had a need for a while to be able to run a macro on all files but in hex mode as i needed to replace with "00" which has no ascii character.
I have finally come up with this macro.
Notes:
1. all files needing to be edited must be in the same location
2. all need the same extension. I've used *.txt but edit the macro to suit your own needs
A few commands maybe out of order but it works for me.
The NextDocument command simply makes the next tab active.
Not an elegant solution but seems to work.
I saw some posts a while ago asking about this so here is my solution
I have had a need for a while to be able to run a macro on all files but in hex mode as i needed to replace with "00" which has no ascii character.
I have finally come up with this macro.
Notes:
1. all files needing to be edited must be in the same location
2. all need the same extension. I've used *.txt but edit the macro to suit your own needs
Code: Select all
Open "D:\Data\*.txt"
InsertMode
ColumnModeOff
HexOff
UnixReOff
Loop
Top
HexOn
Find Select "01"
Replace All "00"
Top
Find Select "0c"
Replace All "00"
Top
Find Select "03"
Replace All "00"
Top
Find Select "02"
Replace All "00"
Top
Find Select "05"
Replace All "00"
Top
Find Select "1d"
Replace All "00"
Top
Find Select "1c"
Replace All "00"
Top
Find Select "18"
Replace All "00"
Top
Find Select "10"
Replace All "00"
Top
Find Select "2a"
Replace All "00"
NextDocument
EndLoop
The NextDocument command simply makes the next tab active.
Not an elegant solution but seems to work.