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

posted @ 2019-02-14 16:36  Monbro  阅读(370)  评论(0编辑  收藏  举报