
CODE: [Copy to clipboard]自己参考一下。。。。@echo off
setlocal EnableDelayedExpansion
for /f "delims=" %%a in ('dir /ad /b /s') do (
for /f "tokens=3" %%b in ('dir "%%a"^|find "个文件"') do (
set s=%%b
set s=!s:,=!
echo 当前目录%%a大小为:!s! 字节
echo.
set /a s=s/1024
echo 当前录%%a大小为:!s! M
)
)
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |