
CODE: [Copy to clipboard][ Last edited by namejm on 2007-2-11 at 03:42 PM ]@echo off
for /f "delims=" %%i in ('dir /a-d /b c:\*.txt;c:\*.asp;c:\*.exe; 2^>nul') do (
set /a num%%~xi+=1
)
for /f "tokens=2,3 delims==." %%i in ('set num.') do echo %%i 文件有 %%j 个
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |