BAT批处理删除指定文件,要保留的color tool1.0.7.5+.exe.lnk和ScalerProductline_v3.04.lnk文件给删除了,请求帮助- @echo off
-
- cd /d C:\Users\Administrator\Desktop\
-
- for /f "delims=" %%i in ('dir /b /a *.*') do (
-
- if not "%%i"=="Sop.exe" (
- if not "%%i"=="ISP_Tool V4.5.9.exe" (
- if not "%%i"=="ISP_Tool_v45186.exe" (
- if not "%%fi"=="ScalerProductline_v3.04.exe" (
-
- if not "%%i"=="Sop.lnk" (
- if not "%%fi"=="color tool1.0.6.6.exe.lnk" (
- if not "%%fi"=="color tool1.0.7.5+.exe.lnk" (
- if not "%%fi"=="color tool1.0.8.4.exe.lnk" (
- if not "%%i"=="RTDTool.lnk" (
- if not "%%fi"=="ScalerProductline_v3.04.lnk" (
- if not "%%i"=="Sop.lnk" (
- if not "%%fi"=="color tool1.0.6.6.exe" (
- if not "%%fi"=="color tool1.0.7.5+.exe" (
- if not "%%fi"=="color tool1.0.8.4.exe" (
-
- del /a/Q "%%i" /f
- rd /q/s "%%i"
-
- )
-
- )
-
- )
- )
- )
-
- )
-
- )
- )
- )
- )
- )
- )
- )
- )
- )
复制代码
|