Batch file counter

Microsoft / Dos
August 20, 2009 at 10:15:17
Specs: Windows XP
I am renaming a bunch of .pdf files and I'm having a hard time adding a counter after renaming. Here is what I have so far for my batch file---

rename \Company\DM\MC\Backup\09_08_20\*.*pdf MC_%YY_MM_DD%.pdf

Because there are multiple .pdf files and I want them to include the current date it won't rename all of them (obviously because you can't have more than one file with the same name).

Any suggestions on how to add a counter after the current date when renaming?

See More: Batch file counter

Report •

August 20, 2009 at 21:03:43
Post this in the Programming Forum on the right

Report •
Related Solutions

Ask Question