batch file to find any folder and rename it

wickitom's Avatar, Join Date: Jun 2010
Newbie Member
Hi,

I hope I am posting this in the right thread.

I am having a hard time writing a batch script (*.bat) that will do this simple procedure.
At the location of the *bat file there will be one folder, I need the batch file to find that folder whatever it is name and rename it to anything specified, like "000".

That's it. The current directory where that batch file will be located will always have another folder, that folder might have other folders inside but the folder present in the current directory must be renamed to "000". I will not know that folders name, it will change constantly.
0
Mike911's Avatar, Join Date: Jun 2010
Go4Expert Member
Yes, thats easy but what didn´t you know then ?
You can read/write textlines or binary code to files, create+rename+delete them easily. Yust look for fileaccess in the web.