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

后端 未结 6 900
春和景丽
春和景丽 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 08:57

    Do rmdir /S for deleting a non-empty directory and do rmdir /Q for not prompting. Combine to rmdir /S /Q for quietly delete non-empty directories.

提交回复
热议问题