I have a list of files which are in the format on the left. I want to append a string to each file name, but before the extension, as shown:
File 1.txt -> File 1 version 1.txt File 2.txt -> File 2 version 1.txt File 3.txt -> File 3 version 1.txt File 4.txt -> File 4 version 1.txt ...
In each case, the appended string is the same across all files.
This seems like such a simple task, but I'm having some trouble putting this into a batch file.
I've tried the
ren command and followed some the the examples on this page, but the resulting file names append the string after the extension:
File 1.txt version 1.txt