View Single Post
  #3  
Old September 15th 20, 06:05 PM posted to alt.comp.os.windows-10,alt.msdos.batch,rec.photo.digital
Arlen Holder
external usenet poster
 
Posts: 186
Default Batch file to uniquely nmame & random rename JPEG images [randomnames.bat]

On Tue, 15 Sep 2020 18:51:28 +0200, Herbert Kleebauer wrote:

Just because you use %random% 3 times doesn't make it impossible to get
the same name twice. Hopefully you never write SW where live depends on.


Hi Herbert Kleebauer,

Thank you for assessing the script, where I fully agree that it's only
random as much as running pseudo @rand 3 times will make it so. Agreed.

This is much easier done with the GUI using explorer. Select all files
you want to rename and click "rename". If you display the files ordered
by date, then also the filenames have this order.


I had forgotten about that feature of Windows, so again, I thank you for
remaining me, and the others on this newsgroup of the context sensitive
rename menu item.

I just tested it, by the following process, which worked just fine:
a. I selected 75 photos in the Windows explorer
b. I right clicked on one, and selected rename & typed "a"
c. It renamed them successively from "a(1).jpg" to "a(75).jpg"

In addition, while we're listing batch renaming capabilities, Irfanview
freeware has batch renaming capabilities based on regular expressions:
o Irfanview Batch Rename
http://irfanview.helpmax.net/en/file-menu/batch-conversionrename/
--
While none are truly random neither Irfanview nor rename seem to be random.
Ads