File size comparison, then renaming (question for the programmers)
Sloi
Quebec
I inadvertently made a mistake while backing up some files yesterday but I won't bore you with too many details. Basically, I copied my internet explorer favorites on a dvd-r with some other software before re-partitioning my system to prepare a new OS install but before doing so, I had already begun sorting through and re-organizing my favorites (a second time), which I then backed up on a floppy in a DOS session. My problem:
All LONG filenames have been renamed to exampl~1.whatever
When I returned in Windows, none of the long names were intact anymore (I understand why but I didn't think about it at the time of back-up) so all of my re-organizing is going to waste unless...
... unless I can somehow come across a program which would compare the first few letters of the filenames and the size of the links. Once it has made the link between those two files, it would copy over the short-name file and put the long-name on it.
Example:
Compares first 5 letters of "stupid~1.lnk" and checks to find a match, in this case -> stupid mistake.lnk
Checks file sizes to insure proper match. If a match, it copies over the ~1 file and keeps the long filename.
Has a program like this ever been made ? How complicated would it be to make something like this from a batch file ? I have little to no programming experience so this looks like somewhat of a daunting task. I will accept any suggestions but keep in mind that re-organizing would take a LONG time...
Thanks in advance!
All LONG filenames have been renamed to exampl~1.whatever
When I returned in Windows, none of the long names were intact anymore (I understand why but I didn't think about it at the time of back-up) so all of my re-organizing is going to waste unless...
... unless I can somehow come across a program which would compare the first few letters of the filenames and the size of the links. Once it has made the link between those two files, it would copy over the short-name file and put the long-name on it.
Example:
Compares first 5 letters of "stupid~1.lnk" and checks to find a match, in this case -> stupid mistake.lnk
Checks file sizes to insure proper match. If a match, it copies over the ~1 file and keeps the long filename.
Has a program like this ever been made ? How complicated would it be to make something like this from a batch file ? I have little to no programming experience so this looks like somewhat of a daunting task. I will accept any suggestions but keep in mind that re-organizing would take a LONG time...
Thanks in advance!
0
Comments
Thanks to those who looked ...