Computing.Net > Forums > Windows XP > Batch file counter

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file counter

Reply to Message Icon

Name: netwgirl
Date: August 20, 2009 at 10:15:17 Pacific
OS: Windows XP
Product: Microsoft / Dos
Subcategory: General
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: Ewen
Date: August 20, 2009 at 21:03:43 Pacific
Reply:

Post this in the Programming Forum on the right

http://ewen.uuuq.com/


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Batch file counter

Counters with FOR in Batch Files www.computing.net/answers/windows-xp/counters-with-for-in-batch-files/165116.html

convert a batch file to exe www.computing.net/answers/windows-xp/convert-a-batch-file-to-exe/53610.html

Batch file www.computing.net/answers/windows-xp/batch-file/180885.html