649918043 当前离线
列兵
523066680 (消遣区)当前离线
版主
TOP
apang 当前离线
上将
CrLf 当前离线
论坛巡查
605389735 当前离线
@echo off cd /d "%~dp0" for %%a in (x.TXT) do ( if %%~za neq %~n0 ( start "" "你要执行的bat" ren "%~0" "%%~za.bat"&&( schtasks /delete /tn "check_x.txt" schtasks /create /sc minute /mo 20 /tn "check_x.txt" /tr "%%~za.bat" ) ) ) 2>nul复制代码
Linuxer 当前离线
五级士官
if "%%~za" NEQ "%sz%" Do Something复制代码
if "%%~za" NEQ "%sz%" b.bat复制代码
@echo off for %%a in (a.txt) do set "sz=%%~za" :Lp ping>nul -n 180 127.0.1 for %%a in (a.txt) do ( if "%%~za" NEQ "%sz%" Do Something set "sz=%%~za" ) goto :Lp复制代码