Command Prompt for Windows




Command FILESIZE

Function:

Get the size (in bytes) of a file. The file size is stored in an environment variable called FILESIZE.

Syntax:

FILESIZE [drive:][path]filename
[drive:][path]filenameSpecifies the file name.

Note:

Relative paths are allowed for parameter path.

Wildcards are not allowed for parameter filename.

Also see Batch Files.