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,206
  • 28
  • 102
  • 134
1

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

Ƭᴇcʜιᴇ007
  • 111,883
  • 19
  • 201
  • 268
  • That was just an example; they would have to edit and repeat the command for each and every day (which would quickly become problematic without some sort of recursion-preventing attention). – Synetech Feb 12 '12 at 06:49
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
  • 68,243
  • 36
  • 223
  • 356