WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

File Operations

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2001:01:03:11:31:36
Last Updated: 2001:01:03:11:31:36