China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-28 23:12
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] Name the smallest and largest current BAT files View 1,484 Replies 1
Original Poster Posted 2008-07-14 08:07 ·  中国 广东 揭阳 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Today I’m planning to make more than ten posts in a row, hehe
You all think I only know how to write special effects, right? I’ll post a few application-type ones later.
It’s just that they’re all small little things, nothing special (so I don’t even dare post them...)


@echo off &rem code by 523066680@cn-dos.net
set x=bat
if not exist *.%x% (echo,no %x% file exists &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,current smallest %x% file %%b bytes %%c)
set big=current largest %x% file %%b bytes %%c
)
)
echo %big%
pause>nul


[ Last edited by 523066680 on 2008-12-19 at 14:01 ]
Floor 2 Posted 2008-12-19 14:01 ·  中国 广东 揭阳 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
This is an old thread nobody reads, so I’m revising it and making it into a new thread
Forum Jump: