重复文件查找:https://download.csdn.net/download/rerere__rereredd/9745723 Duplicate Cleaner Pro 4.0.4中英文多语言 注册版
1.FilelistCreator --- 导出某个盘的文件,导出成excel表格,工具下载:https://www.cnblogs.com/onelikeone/p/11965279.html
2.针对路径,添加引号,添加引号方法参考:https://www.cnblogs.com/onelikeone/p/11965914.html
3.excel表格筛选要删除的文件,标注颜色,复制路径 到bat脚本
删除指定文件.bat
@echo off chcp 65001 DEL /F/S/Q "D:\workspace\项目收集【】\AndroidCode原包名\闹钟\readme.txt" DEL /F/S/Q "D:\workspace\项目收集【】\AndroidCode原包名\闹钟\ZZDeskClock\ZZDeskClock\.classpath"
4.最后删除空文件夹
最后删除空文件夹.bat
@echo off @REM https://blog.csdn.net/XavierDarkness/article/details/84785482 color 0A for /f "delims=" %%a in (‘dir . /b /ad /s ^|sort /r‘ ) do rd /q "%%a" 2>nul pause