Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, wizlog, Tom Wijsman, studiohack Feb 14 '12 at 4:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Does it have to be from the command-line? –  Synetech Feb 12 '12 at 6:51

3 Answers 3

up vote 1 down vote accepted

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

share|improve this answer
    
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 6:49

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.

share|improve this answer

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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.