I want to add "a" to specific place in a filename for some, but not all files in a dir.
The files are all pdf files, and have different numbers as filename with the following formats:
x.pdf
or
x_x.pdf
x can range from 1-999. The files to be renamed are all files that has 2 or 3 chars after a "_". The new filename should have a "a" after the _
In this example, bold files should be have a "a" after the _
0.pdf
0_34.pdf
10.pdf
10_1.pdf
10_10.pdf
10_111.pdf
Im trying to do something like IF exist *_??.pdf ren *_a??.pdf (
or creating a loop for %%o in (*_??.pdf) do ren "%%o" "*_a??.pdf"
and then do one with three ???. It doesn't look like im very close, and therefor I ask you guys for help! :)