
CODE: [Copy to clipboard][ Last edited by 523066680 on 2008-12-19 at 14:01 ]@echo off &rem code by 523066680@cn-dos.net
set x=bat
if not exist *.%x% (echo,不存在%x%文件 &pause>nul &exit)
for /f "tokens=*" %%a in ('dir /os /b *.%x%') do (
for /f "tokens=3*" %%b in ('dir "%%a" ^|find "%%a"') do (
if not defined yes (set yes=defiend &echo,当前最小的%x%文件 %%b 字节 %%c)
set big=当前最大的%x%文件 %%b 字节 %%c
)
)
echo %big%
pause>nul
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |