I need a simple batch file to work on XP that will go into a specific directory and delete all files and sub folders (including non empty directories).
Below is what I had and I thought it worked, but it deletes the root folder too. I need to keep the initial folder and delete everything else.
@ECHO OFF
rmdir "C:\test" /s
echo C:\test has been deleted successfully
echo Please inform the ISD technician that the system is ready
pause
Secondly, is there a way to make it NOT prompt for y or n on deletions? The less intervention of our endusers, the better.
2007-10-25
04:31:46
·
5 answers
·
asked by
biggestperlnerd
3
in
Computers & Internet
➔ Programming & Design