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 >
If you are not dealing with a windows with a english/us locale you might need to retrieve the answers needed for your machine:
@echo off setlocal set "ans_yes=" set "ans_no=" set "ans_all=" copy /y nul # >nul for /f "tokens=2-7 delims=[(/)]" %%a in ( ' copy /-y nul # ^