lonron 当前离线
二级士官
for /f "skip=1 tokens=1,2" %%a in (Test.txt) do if exist %%a\%%b del /q %%a\%%b复制代码
评分人数
czjt1234 当前离线
少校
TOP
77七 当前在线
中校
@echo off for /f "skip=1 tokens=1,2" %%a in (Test.txt) do ( call echo %%a\%%b ) pause复制代码
@echo off for /f "skip=1 tokens=1,2" %%a in (Test.txt) do ( call if exist %%a\%%b ( echo 存在 ) ) pause复制代码
@echo off for /f "skip=1 tokens=1,2" %%a in (Test.txt) do call if exist %%a\%%b (echo 存在) pause复制代码
terse 当前离线
中将
call cd /d %%a\ if exist %%b del /q %%b复制代码
WHY 当前离线
上校
@echo off for /f "skip=1 tokens=1-2" %%a in (Test.txt) do ( call :Next %%a\%%b ) pause & exit :Next if exist "%~1" echo;del "%~1"复制代码
@echo off for /f "skip=1 tokens=1-2" %%a in (Test.txt) do ( for /f "delims=" %%i in ('echo;%%a\%%b') do ( if exist "%%i" echo del "%%i" ) ) pause复制代码
@echo off for /f "skip=1 tokens=1-2" %%a in (Test.txt) do ( call del "%%a\%%b" 2>nul ) pause复制代码
@echo off for /f "skip=1 tokens=1,2" %%a in (Test.txt) do ( call set "m=%%a" set "n=%%b" ) if exist "%m%\%n%" ( echo 存在"%m%\%n%" ) pause复制代码