|Hi all, |
I am trying to write a small script that creates a new folder (lets say test) with "MD function.
If NOT exist test MD test
But, if test exists i want to rename the directory to test_old
IF exist test REN test test_old
If NOT exits MD test
As I only started out recentely with batch programming I am not able to find out how to do the following.
when the test_old alreay exists I want to rename the current test folder to test_old2, so no directory's are deleted, only changed.
in short, she script needs to know what the last test_old(X) is and rename the current folder to test_old(X+1)
map structure should look like this
the test folder is the folder wich is in use now.
the folders with the OLD suffix are folders wich aren't -used anymore but can't be deleted.
this script will be used to reset userprofiles
anyone can help regarding this?