Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Calculate File Sizes Recursively

Keywords:   file sizes filesize

Question:

How do I calculate file sizes recursively, through directories?

Answer:

Option #1: Starting with version 98A of WinBatch, see the function DirSize.

Option #2: If you look in the \WinBatch\Samples directory on your machine, you can find a FileSize.wbt file that will search the hard drive accumulating file sizes. If you get a few cups of coffee and a few hours and figure out how it works, then you can use it to do a lot of stuff across hard drives.

Also search for Article ID: W13793 elsewhere on this database.


Article ID:   W13238
Filename:   Get File Sizes Recursively.txt