Script or program to batch rename directories

GagHalfrunt

Lifer
Apr 19, 2001
25,284
1,998
126
Current directory structure has a bunch of top level directories A, B, C, D etc all the way through the alphabet. Under each TLD is a series of 15-40 subfolders each of them numbered sequentially 01-02-03 etc. I'm looking for a program or a batch script that will recurse through every subfolder and ratchet the numbers up 1. IE, every subfolder named 01 would become 02, all the 02's become 03, 03 to 04, etc etc. It's easy to do with files, but I can't find a way to do it with folders. Anyone have any ideas?
 

MrScott81

Golden Member
Aug 31, 2001
1,891
0
76
this should do the trick....

i would personally just write a program in java to do it, but that should work too