- @echo off
- >$2.bat more +7 "%~f0"
- start "" $2.bat
- >nul ping -n 4 0
- rem 以实际窗口显示的标题为准,可能为管理员: #举个栗子#
- taskkill /f /fi "windowtitle eq #举个栗子#" /im cmd.exe
- pause&exit
- @echo off
- title #举个栗子#
- for /l %%a in (1 1 10) do (
- echo;%%a
- >nul ping -n 2 0
- )
- pause
复制代码
|