- @echo off
- if %1# NEQ # goto %1
-
- set /a nIndex=0
- :_start
- (
- start /b %~fs0 :_Thread
- pause>nul
- echo 提前按下操作键,退出默认执行任务...
- >%tmp%\$ cd.
-
- exit
- )
-
- :_Thread
- (
- setlocal enabledelayedexpansion
- ping -n 2 127.1>nul
- set /a nIndex+=2
- set /a nRev=10-!nIndex!
- echo 操作倒计时 !nRev! 秒
- if exist %tmp%\$ del /f %tmp%\$ & exit
-
- if !nIndex! lss 10 goto :_Thread
-
- start "" notepad
- )
复制代码
|