ldw1982 当前离线
列兵
cmd1152 当前离线
禁止访问
@echo off setlocal enabledelayedexpansion echo; (for /l %%i in (1,1,64) do (set "Ts=!Ts!")) set/p=!Ts! Number of documents:Wait...<nul for /f %%i in ('dir /a-d-h/b/s *') do (set /a a+=1 set/p=!Ts! Number of documents:!a! <nul ) echo; set/p=!Ts! Press any key to exit ...<nul pause>nul复制代码
TOP
qixiaobin0715 当前离线
大校
@echo off setlocal enabledelayedexpansion for /d %%a in (*) do ( for /d %%b in (%%a\*) do ( set n=0 for %%c in (%%b\*) do set /a n+=1 echo,文件夹%%b中有!n!个文件。 ) ) pause复制代码
@echo off setlocal enabledelayedexpansion for /d %%a in (*) do ( set m=0 for /d %%b in (%%a\*) do ( set n=0 for %%c in (%%b\*) do ( set /a n+=1 set /a m+=1 ) echo,%%b:!n! ) echo,%%a:!m! echo, ) pause复制代码
@echo off setlocal enabledelayedexpansion for /d %%a in (*) do ( pushd "%%a" set m=0 for /f "delims=" %%b in ('dir /b /s /a-d') do set /a m+=1 echo,%%a:!m! popd ) pause复制代码
aloha20200628 当前离线
上尉