回复 4# 帝尊
试试这样?- @Echo Off
- If Exist "%UserProFile%\Desktop" (
- Cd /D "%UserProFile%\Desktop"
- ) Else (
- Cd /D "%UserProFile%\桌面"
- )
- @Goto :Main
-
- :Main
- For %%_ in (1.txt 2.bat 3.png) Do (
- For /F "Delims=" %%` in ('Dir /B /S %%_') Do (
- Echo.正在检测 %%`
- If Exist "%%`" Del /F "%%`"
- )
- )
- @Goto :Main
复制代码
|