wwdx 当前离线
列兵
@echo off setlocal enabledelayedexpansion for %%i in (c,d,e,f,g,h) do ( set disk=%%i:\ for /r !disk! %%j in (a.txt,b.txt) do @if exist %%j del "%%j" )复制代码
评分人数
TOP
apang 当前离线
上将
@echo off for %%i in (c,d,e,f,g,h) do ( pushd %%i:\ for /r %%j in (1.txt,2.txt) do if exist "%%j" del "%%j" popd )复制代码