BAT脚本每隔30秒创建一个512兆文件(测试磁盘监控用)

@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

猜你喜欢

转载自www.cnblogs.com/gocd/p/10375375.html
0条评论
添加一条新回复