Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Other versions of this page are also available for the
following:
8/28/2008
This command returns the size of a file in bytes.
Syntax
filesize [ filesys path ] |
Parameters
- filesys path
-
Fully qualified path to the file or directory of interest.
Example Code
The following example shows how you can use this command.
Copy Code | |
---|---|
; ******************************************* ; Getting file size ; ******************************************* set file "control panel.lnk" echo "file size of '%file%' is `filesize "%dir%\%file%"` bytes" |
Remarks
This command outputs a numeric string representing the size, in bytes, of the named file.
This command is typically used within backticks to perform command substitution.