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

前端 未结 4 2093
后悔当初
后悔当初 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 11:58

    You have the following options on Windows command line:

    net use [DeviceName [/home[{Password | *}] [/delete:{yes | no}]]
    

    Try like:

    net use H: /delete /y
    

提交回复
热议问题