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

On 15.09.2020 03:23, Arlen Holder wrote:

SET NewName=!RANDOM!-!RANDOM!-!RANDOM!!Use!
ECHO %%A/!NewName! %TranslationFile%
RENAME "%%A" "!NewName!"


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.


I use it when I take a bunch of screenshots over long periods of time, and
edit them one by one, as needed, where the names aren't in the order of the
screenshots anyway, and there are too many to rename manually, so I rename
them randomly - which makes each one distinct.


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.


Ads