Renaming files to its relative offset Log Out | Topics | Search
Moderators | Edit Profile

X-Ways Support Forum » Advanced Features » Renaming files to its relative offset « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Duncan Clarke
Username: dac_retrodata

Registered: N/A
Posted on Tuesday, Jul 21, 2009 - 9:29:   

We have a couple of folders, each containing millions of images, and every single image is numbered in a sequence. The offset to the sequence number is 0x14 bytes and is 4 bytes long in Little Endian format.

Is it possible to use X-Ways to read the hexadecimal number at the offset, convert it to a decimal number and rename the file to the decimal number?

That is, so the file name becomes the same name as the decimal value of the hexadecimal sequence number.
Thanks
Duncan
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann
Username: admin

Registered: 1-2001
Posted on Tuesday, Jul 21, 2009 - 12:34:   

No, there is no "RenameFile" script command.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pánczél, Levente
Username: panczel_levente

Registered: N/A
Posted on Tuesday, Jul 21, 2009 - 13:17:   

Stefan:
1) "MoveFile" does the trick for me, is it not intended to?
2) If one could catch the name of the currently active object (I would have found it very handy before) then he also had the option to build a .bat file that would be able to rename (or zip, etc.) the files. ... Just a thought to make you file the whish ;)
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann
Username: admin

Registered: 1-2001
Posted on Wednesday, Jul 22, 2009 - 10:45:   

1) You are right!

Add Your Message Here
Post:
Username: Posting Information:
Only registered users may post messages here, i.e. you need to have an account.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:
Forum operated by X-Ways Software Technology AG.