How to supply console input ( yes / no ) as part of batch file on Windows.

后端 未结 6 899
春和景丽
春和景丽 2020-12-08 08:33

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
         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 09:16

    Use rmdir /S /Q modules

    /Q suppresses the confirmation prompt.

提交回复
热议问题