
- 帖子
- 3
- 积分
- 15
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2021-2-22
|
[系统相关] BAT批处理删除指定文件,要保留的文件给删除了,请求帮助
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"
)
)
)
)
)
)
)
)
)
)
)
)
)
)
) |
附件: 您需要登录才可以下载或查看附件。没有帐号?注册
|