terse 当前离线
中将
TOP
:30 @echo off set /ps=<%~0 set s=%s::=% set /a s-=1,m=30-s echo 运行%m%次 for /f "skip=1 delims=" %%i in ('type %~s0') do ( if defined s >%~s0 echo :%s%&set "s=" >>%~s0 echo %%i ) pause复制代码
:50 @echo off set /ps=<%~0 set /a "s=%s::=%-1" if %s% equ 0 del %~s0 for /f "skip=1 delims=" %%i in ('type %~s0') do ( if defined s >%~s0 echo :%s%&set "s=" >>%~s0 echo %%i ) pause复制代码