xleon 当前离线
列兵
zaqmlp 当前离线
上尉
@echo off set info=互助互利,支付宝扫码头像,感谢赞助 rem 有问题,可加QQ956535081及时沟通 title %info% set "folder=E:\test" set "file=E:\out\number.txt" set n=0 set "s=OK" for /f "delims=" %%a in ('dir /a-d/b "%folder%"') do set/an+=1 if %n% gtr 5 (set "s=ERROR") >>"%file%" echo;%s% echo;%info% pause复制代码
TOP
impk 当前离线
一级士官
@echo off for /f %%i in ('dir/b/a-d E:\test\*.*')do set/a fn+=1 if %fn% lss 5 ( echo.%date%%time% OK >>E:\out\number.txt ) if %fn% geq 5 ( echo.%date%%time% ERROR >>E:\out\number.txt )复制代码
@echo off set "folder=E:\test" dir /a-d/b "%folder%" pause复制代码