Monday, August 13, 2018

windows - Bulk renaming files






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

Answer



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


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...