2553248740 当前离线
列兵
echo off setlocal set inputDir = "C:\99Pursey" set /a num = 0 for %%m in (" dir /s /b %inputDir%\*") do ( if not %%m == "test.bat" ( echo %%m set /a num = num + 1 ) ) echo "total num :"%num% endlocal pause复制代码
DAIC 当前离线
中将
TOP
apang 当前离线
上将
@echo off pushd "C:\99Pursey\" for /f %%a in ('dir /a-d/b/s^|findstr /iv \\test\.bat$^|find /c /v ""') do set n=%%a echo,%n% pause复制代码
terse 当前离线
CrLf 当前离线
论坛巡查