Hi,
I need a batch script, which has to create a directory, but if the directory already exists, it has to delete it, and create a fresh one. I dont know, what command to be used.
Normally, to check for a file exist, we do like
IF EXIST sample.txt DEL sample.txt, so that we can create a new file.
but, this doesn't work for the directory like if exist <dir name> del <dir name>
could anyone suggest what is the script to be used, to do this?