Page 1 of 1

Extract String from known address in many files

Posted: 27 Apr 2020 07:50
by ezhxd
I have 100 files of different length and similar structure.
I want to extract 2 strings and send to text editor making list. The valid data inside string has different length. I use needed + some, 20 or more.
Address from
Hex _____1____ Length 20. This contains a file path\name.*** of different length. I don't care about surplus length.
Hex _____2____ Length 20. This contains a file path\name.*** of different length. I don't care about surplus length.

If the list could include the file name it would be great. I can manage without because I can see the order form the source file.
However there must be some sort of verification of output versus source file. Win10 orders files sometime a little odd.

HexAddresses: 00000640 and 00000700
I was trying to add a sample file. Your system seems to block correct extension *.sng. Zipped !

I am new to this program, used Hex Editor Nero free. HxD is better. Thanks for help, English or German.

Re: Extract String from known address in many files

Posted: 28 Apr 2020 16:01
by Maël
If you are asking if there is a way to automate this, unfortunately there isn't, since there is no scripting support yet.

But it should be relatively easy to write a small program for this, using filestreams.

You could also try something similar to what was suggested here:
viewtopic.php?f=4&t=1092#p3370

Re: Extract String from known address in many files

Posted: 02 May 2020 23:08
by ezhxd
Thanks, learning to do this will certainly take much more time then manual operation: Open file, GoTo1, Copy+paste (LibreOffice), GoTo2 etc.
Alternative: Seek more free Hexies.
Digital is supposed to make repeated processes easier - ;-)

Re: Extract String from known address in many files

Posted: 02 May 2020 23:25
by Maël
Sure, but all that functionality takes time to implement ;)

Re: Extract String from known address in many files

Posted: 03 May 2020 21:57
by ezhxd
I used NEO, recently HxD.
Now installed HexEdit, WinHex, xvi32
None of these offers any way to automate range extraction, even for 1 file. Extracting in folder - no way.
You can input a string and search for it and find location.
You can not input location and extract string.
I am not sure if a hex editor of Win3.1 was able to do it. :)