建一个bat批处理文件,包含以下命令: del /F /A /Q \\?\%1rd /S /Q \\?\%1 把要删除的文件或者目录拖到这个bat的图标上就可以了。 转载于:https://www.cnblogs.com/leavind/p/6709105.html