Skip to content

dos_dirsize

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Returns the total size, the number of subdirectories, and the number of files in the specified directory.

Syntax

(dos_dirsize path [T])

Parameters

path

A string containing an existing path.

T

Recurse into subdirectories.

Returns

A list containing the total size in bytes, the number of subdirectories, and the number of files if successful. Note, the size is returned as a real number.

nil on error.

Example

Command: ( dos_dirsize "C:\\Program Files\\AutoCAD 2007\\")
(1.78669e+008 0 533)

Command: (dos_dirsize "C:\\Program Files\\AutoCAD 2007\\" T)
(3.86812e+008 81 1620)

Clone this wiki locally