3

Possible Duplicate:
How can I mass rename files from the command line or using a 3rd party tool?

So I have a series of files with the following format Their real file name followed by the date.

file_1_12DEC2011.pdf
file_2_12DEC2011.pdf
file_3_12DEC2011.pdf
file_4_12DEC2011.pdf
file_5_12DEC2011.pdf

I am trying to figure out How I can Increment the day by one day. For instance, this would be my desired result.

file_1_13DEC2011.pdf
file_2_13DEC2011.pdf
file_3_13DEC2011.pdf
file_4_13DEC2011.pdf
file_5_13DEC2011.pdf

3 Answers3

4

Bulk Rename Utility is a great tool for this. Offers a choice of regexes, fixed index changes (that is what you should go for probably) and a host of other options.

soandos
  • 24,600
  • 29
  • 105
  • 136
1

For this specific example case ren *12DEC*.* ???????13*.* from a command prompt should work.

1

If it does not have to be a command-line tool, then my advanced file-renaming program of choice is Cylog’s Wildren. In your case, you would combine the regular-expression function with the counter function. It can also simulate the rename operations so that you can check if your parameters are correct before doing it for real.

Synetech
  • 69,547