Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   batch file to find any folder and rename it (http://www.go4expert.com/forums/batch-file-folder-rename-t22305/)

wickitom 4Jun2010 06:36

batch file to find any folder and rename it
 
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.

Mike911 7Jun2010 10:34

Re: batch file to find any folder and rename it
 
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.


All times are GMT +5.5. The time now is 12:37.