Jul 2003 18:25:46 :-
Quote:>I would like to get the exact size of a directory (say D:\work) including its
Not, I think, possible; but you can get the total size of the files
within those directories. A directory is itself a sort of file,
occupying space; but DOS..Win98, at least, do not readily reveal how
Starting in that directory,
HUNT *.* s q | find "Free" | COLS ` 54-64 | STOW size
will set EnvVar SIZE to the total file size, in up to Win98/ME. In
younger systems, something will have to substitute for STOW; but
HUNT *.* s q | find "Free" | COLS 'set * 'size= ` 54-64 > $.bat
gives in $.bat such as
You do not state your location; but you appear to be quasi-German.
However, you will not need to translate 'Free' above.
Get HUNT, COLS, STOW via sig line 3.
You could do dir /s | find " file(s) " | find " bytes" just to list
the file-size totals of the directories - provided that no file had a
LFN containing those strings.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>.
Do not Mail News to me. Before a reply, quote with ">" or "> " (SoRFC1036)