I run a batch file that expands the war file to a specific directory. However, I want to delete this directory before deploying it, recursively.
I found this script that should delete everything in the directory, including folders and files, but I get this error: "%% I was unexpected at that time."
FOR /D %%i IN ("C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/abtapps/ROOT/*") DO RD /S /Q "%%i" DEL /Q "C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/abtapps/ROOT/*.*"
I just need an easy way to recursively delete my ROOT directory, either by installing the script above or using another method. Must be able to do this from a batch file.
I am running windows 7.
Decision
rmdir ROOT /s /q mkdir ROOT
source share