也来一个模拟效果的批:- @echo off
- echo.>1.txt
- for /l %%i in (1,1,20) do (
- start 1.txt
- for /l %%a in (1,1,2000) do echo>nul
- taskkill /im notepad.exe /f>nul
- if not defined flag (
- set /p=%%i <nul>1.txt&set "flag=a"
- ) else (
- set /p=%%i <nul>>1.txt
- )
- start 1.txt
- )
- ping /n 3 127.1>nul
- taskkill /im notepad.exe /f>nul
- start /min 1.txt
复制代码
|