|
I had a need to generate random filenames in Windows (while keeping the original extensions) for a folder with a few thousand files in it. I found this batch file which worked out pretty well and even keeps a translation log to reverse the process, but it doesn't work with files that contain special characters (i.e. parenthesis, exclamation points, brackets or special unicode characters). Anyone know of a better way, or how to modify this batch file so that it will work with files containing special characters? TIA.
|
# ? Sep 27, 2014 18:33 |
|
|
# ? May 6, 2024 12:23 |
|
Try Ken Rename. http://lifehacker.com/5074500/ken-rename-helps-you-rename-on-the-go I used it a while back for something similar and it worked for me.
|
# ? Sep 28, 2014 23:47 |
|
If you have PowerShell, you can generate GUIDs to create random filenames that don't need to be checked to see if they exist ahead of time (very random & well distributed). Will probably need something beyond batch files to handle the special characters though. FOR /F %a IN ('POWERSHELL -COMMAND "$([guid]::NewGuid().ToString())"') DO ( SET NEWGUID=%a )
|
# ? Oct 10, 2014 18:33 |