回复 15# microsoft_yaw
- @echo off & chcp 65001>nul
- set "folder_path=%~dp0Working\%1"
-
- REM 删除普通文件中的123.jpg、*.txt、*.url、*.html
- del /s /q "%folder_path%\123.jpg"
- for %%a in (txt url html) do (
- del /s /q "%folder_path%\*.%%a"
- )
-
- REM 删除只读、隐藏文件中的*.jpg、*.txt、*.url、*.html
- for %%a in (jpg txt url html) do (
- del /s /q /ar "%folder_path%\*.%%a"
- del /s /q /ah "%folder_path%\*.%%a"
- )
- pause
复制代码
|