How to skip “are you sure Y/N” when deleting files in batch files

前端 未结 4 2111
后悔当初
后悔当初 2020-12-24 11:16

I can\'t for the life of me remember how to bypass the annoying prompt are you sure? Y/N when deleting files.

I seem to recall it was something like:

4条回答
  •  清歌不尽
    2020-12-24 12:07

    Use del /F /Q to force deletion of read-only files (/F) and directories and not ask to confirm (/Q) when deleting via wildcard.

提交回复
热议问题