I need a batch file that I can drop into a folder and run that will rename every .jpg file in the folder (but no others). It needs to be renamed to the 17 right-most characters of the existing file name, not including the period and extension. The total amount of characters in the filenames now are different. I've got a mess where a friend loaded images from a camera multiple times without deleting them from the camera each time so I have files such as these in several folders:
P123232_343_34557.jpg
Copy of P123232_343_34557.jpg
Copy (9) of P123232_343_34557.jpg
Copy of Copy of Copy of P123232_343_34557.jpg
There are hundreds of files and I don't have time to rename them all manually or look up the code to do it for them. I think all I really need is the FOR line to handle renaming each file. I guess if the file already exists (such as P123232_343_34557.jpg), it should check and delete only if the files are identical. Or it could move to a subfolder that can be checked and deleted or something.
Thanks!
20080924-EE-VQP-41 / EE_QW_EXPERT_20070906