
CODE: [Copy to clipboard]@echo off
set SrcDir=C:\test
set Max=10
for /f "delims=:" %%a in ('dir /b "%SrcDir%" ^| findstr /n .*') do @set count=%%a
if %count% gtr %Max% (
echo 文件数超过最大值了,已经达到%count%个啦,老大,快来看看吧!
)
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |