|I have a batch script to rename files but in some cases I will have only 2 numbers on the original file name but I want to rename it with 4 numbers so, filling in with 2 zero's.|
i.e.: Input: Record_89
The problem is that I can have files with only 2 numbers (as above) and some with 4 numbers, in this case I don't want to change it.
i.e.: Input: Record_3207
I think I would need to use an IF to only rename the files with 2 characters at the end of its name, I know it is very simple but I am not sure how to do it.
I am renaming the files on the way below (for the 2 characters files... I will need an IF to make a condition... ??
for %%j in (Record*.png) do (
ren "%%j" "Record_00!iname!.png"
Many thanks! :D