hdbcchd 当前离线
列兵
idwma 当前离线
少校
TOP
ndjcch 当前离线
qixiaobin0715 当前离线
大校
@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir /b /s /ad^|findstr /r /e *[0-9]号') do ( set n=0 pushd %%a for /d %%i in (*) do set /a n+=1 echo,%%a下有!n!个文件夹。 popd ) pause复制代码
newswan 当前离线
上尉
$res = ".*\\(\d+y\\\d+m\\\d+d)\\(.+)(\\*.*)" $red = "`$1,`$2" $a = (Get-ChildItem -Recurse -depth 3 -Directory | foreach-Object FullName ) -match $res -replace $res,$red (@("path,folder") +$a ) | ConvertFrom-Csv | Group-Object "path" | Select-Object name,count复制代码
hdbxbxb 当前离线