本帖最后由 battab 于 2013-12-6 10:13 编辑
- @echo off&setlocal enabledelayedexpansion
- for /f "delims=" %%b in (*.txt) do (
- set str=%%b
- call :sub "!str!"
- echo %n%
- for /l %%a in (0,1,!n!) do (
- set /p=!str:~%%a,1!<nul
- ping -n 0 127.1>nul
- )
- echo.
- )
- pause>nul
- exit
-
- :sub
- setlocal enabledelayedexpansion
- set gg=%~1
- set sl=1000
- for /l %%c in (0,1,%sl%) do if "!gg:~%%c,1!"=="" set n=%%c&goto :eof
复制代码
|