I am writing a simple batch file (remove.bat) to remove a directory and all its subdirectories. The file contains the following command-
rmdir /S modules >
Use rmdir /S /Q modules
rmdir /S /Q modules
/Q suppresses the confirmation prompt.
/Q