心若拂尘 当前离线
列兵
@echo off setlocal enabledelayedexpansion for /d %%a in (*) do ( set/a n=z=0 pushd "%%a" for %%b in (*.jpg *.png *.bmp) do ( set/a n+=1,z+=%%~zb ) set/a "z>>=20" popd ren "%%a" "%%a [!n!P !z!M]" ) pause复制代码
idwma 当前离线
少校
#@&cls&powershell "type %~s0|out-string|iex"&pause&exit dir|?{$_.PSIsContainer}|%{ dir -r $_.name -inc *.jpg,*.png,*.bmp|%{$p+=$_.length;$pn++} if($pn -ne $null){'{0} [{1}P {2:f0}KB]' -f $_.name,$pn,($p/1KB)} $p=$pn=$null }复制代码
TOP