@echo off
setlocal ENABLEDELAYEDEXPANSION
set /a ii=0
for /l %%i in (1,1,100) do (
set /a ii+=1
ping -n 30 127.0.0.1>nul
echo !ii!
fsutil file createnew C:\001\TESTFile!ii!.txt 536870912
)
pause
@echo off
setlocal ENABLEDELAYEDEXPANSION
set /a ii=0
for /l %%i in (1,1,100) do (
set /a ii+=1
ping -n 30 127.0.0.1>nul
echo !ii!
fsutil file createnew C:\001\TESTFile!ii!.txt 536870912
)
pause
转载于:https://www.cnblogs.com/gocd/p/10375375.html