Windows delete file prompts that the file does not exist

Use cmd to forcibly delete the file, prompting that the file does not exist. The following method is proper.

//新建一个 deletefile.bat文件  名随意 后缀名为bat
//文件内内容为

DEL /F /A /Q \\?\%1
RD /S /Q \\?\%1

//大功告成,直接把要删的文件拖到这个执行命令文件上就删掉了。

 

Published 51 original articles · won praise 4 · Views 7887

Guess you like

Origin blog.csdn.net/u012174809/article/details/103121968