Board logo

标题: [系统相关] BAT批处理删除指定文件,要保留的文件给删除了,请求帮助 [打印本页]

作者: whqyljy    时间: 2021-2-22 16:09     标题: BAT批处理删除指定文件,要保留的文件给删除了,请求帮助

BAT批处理删除指定文件,要保留的color tool1.0.7.5+.exe.lnk和ScalerProductline_v3.04.lnk文件给删除了,请求帮助
  1. @echo off
  2. cd /d C:\Users\Administrator\Desktop\
  3. for /f "delims=" %%i in ('dir /b /a *.*') do (
  4. if not "%%i"=="Sop.exe" (
  5. if not "%%i"=="ISP_Tool V4.5.9.exe" (
  6. if not "%%i"=="ISP_Tool_v45186.exe" (
  7. if not "%%fi"=="ScalerProductline_v3.04.exe" (
  8. if not "%%i"=="Sop.lnk" (
  9. if not "%%fi"=="color tool1.0.6.6.exe.lnk" (
  10. if not "%%fi"=="color tool1.0.7.5+.exe.lnk" (
  11. if not "%%fi"=="color tool1.0.8.4.exe.lnk" (
  12. if not "%%i"=="RTDTool.lnk" (
  13. if not "%%fi"=="ScalerProductline_v3.04.lnk" (
  14. if not "%%i"=="Sop.lnk" (
  15. if not "%%fi"=="color tool1.0.6.6.exe" (
  16. if not "%%fi"=="color tool1.0.7.5+.exe" (
  17. if not "%%fi"=="color tool1.0.8.4.exe" (
  18. del /a/Q "%%i" /f
  19. rd /q/s "%%i"
  20. )
  21. )
  22. )
  23. )
  24. )
  25. )
  26. )
  27. )
  28. )
  29. )
  30. )
  31. )
  32. )
  33. )
  34. )
复制代码

作者: whqyljy    时间: 2021-2-22 16:11

ScalerProductline_v3.04.exe
color tool1.0.6.6.exe.lnk
color tool1.0.7.5+.exe.lnk
color tool1.0.8.4.exe.lnk
这几个文件都给删啦




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2