Mass rename looking inside file

Advanced Renamer forum
#1 : 28/09-24 16:58
mohanohi
Posts: 3
Sorry, english isn't my native.

I did a recovery of 10000+ files. The file name were some random name. As these files are sequential file, the name should be intact. The recovery program didn't recover the filename. The filename can be viewed in the hex viewer. Can this software look inside the file and do the rename?
#2 : 28/09-24 17:46
Delta Foxtrot
Posts: 364
Reply to #1:

Hi mohanohi,

If the internal filename is always in the same character position you can use the <File Content> tag. See: https://www.advancedrenamer.com/user_guide/v3/ta gs_advanced

There are other tags that may be useful depending on file types. Try looking in the user guide https://www.advancedrenamer.com/user_guide/v3/ta gs for appropriate file types. For instance, <Audio Title>, <Doc Title>, <Image Title>, etc.

Good luck, let us know how it goes.
DF
#3 : 29/09-24 03:44
mohanohi
Posts: 3
Reply to #2:

Thanks for the reply :). Yes. The internal filename is always in the same character position. Can you kindly give an example. I am unable to understand pos and count value.

This is my hex editor screenshot.
https://pasteboard.co/RFgqSVz2ZkwU.png
#4 : 29/09-24 08:22
Delta Foxtrot
Posts: 364
Reply to #3:

Ok, so the "position" is the character position that starts the filename (in decimal). In your case it seems to be 36 (hex 24). Count is simply the number of characters to include (again in decimal), in the case of your example 20. So <File Content:36:20> would work on this example, but you may need to enlarge the "count" number to encompass longer filenames if that is the case. The .dpx standard uses 100 bytes for the filename, so if your files are all .dpx that's the value I'd use for "count" to start. In other words, I'd try <File Content:36:100> to start and see what that gets you. Once you have the filename base you can always massage the first result to give you an accurate filename.

Try that and let me know how it goes. Remember to always check the preview column ("new filename") before executing the batch, and if you don't like the results you can always undo the batch immediately after.

Best,
DF
#5 : 29/09-24 14:28
mohanohi
Posts: 3
Reply to #4:
Thanks a lot. It worked!!