.bat file to rename folder "1" to "a" and create a new folder "1"?

Norbic

Honorable
Mar 29, 2013
85
0
10,640
Is there a .bat file that will rename folder "1" to "a" and create a new folder "a"? This way there will always be an empty "1" folder and there can be multiple other folders such as a-z or perhaps 2-***. so it could be like folder "1" that is empty and 2, 3, 4, 5, 6, 7, 8, 9, etc that has my renders in it? If there is such a thing that be nice but if need be i will continue to manually rename.

EDIT: Perhaps an interactive file that allows me to chose the name the folder "1" will be renamed that still creates a new folder "1".
 
Solution
I created two batches for you. Both have to be in same location with the folder "1":

This one will rename folder "1" to "2" and create a new folder "1". -- If folder "2" already exist, it will rename "1" to "3" and so on.
http://pastebin.com/hXisAhv9
EDIT: I made it little bit shorter: http://pastebin.com/xvhiLSbj

This one will ask you what to rename folder "1" to and create a new folder "1".
http://pastebin.com/8890Yd0H

Just copy text to notepad/etc. and save as a .bat file.

AntonMir

Reputable
Oct 16, 2014
28
0
4,560
I created two batches for you. Both have to be in same location with the folder "1":

This one will rename folder "1" to "2" and create a new folder "1". -- If folder "2" already exist, it will rename "1" to "3" and so on.
http://pastebin.com/hXisAhv9
EDIT: I made it little bit shorter: http://pastebin.com/xvhiLSbj

This one will ask you what to rename folder "1" to and create a new folder "1".
http://pastebin.com/8890Yd0H

Just copy text to notepad/etc. and save as a .bat file.
 
Solution