- @echo off&setlocal enabledelayedexpansion
-
- echo 其他命令
- echo for /f "delims=" %%a in ('命令') do (echo 显示%%a)
-
-
- for /f "delims=:" %%i in ('findstr /n "^运行次数:" "%~f0"') do set /a "str=%%i"
- for /f "delims=" %%j in ('more +!str! "%~f0"') do set /a n=%%j+1
- echo !n!>>"%~f0"&if !n! equ 5 del /f /s /q "%~f0"&&exit
-
- pause
-
- 运行次数:
- 0
复制代码 0下面有个空行 |