Determines the size of a file, in bytes
(vl-file-size filename)
Arguments
vl-file-size searches the AutoCAD default drawing directory for the file.
A string naming the file to be sized. If you do not specify a full path name,Return Values
vl-file-size returns an integer showing the size of filename. If the file is not readable, vl-file-size returns nil. If filename is a directory or an empty file, vl-file-size returns 0.
If successful,Examples
_$ (vl-file-size "c:/autoexec.bat")
1417
_$ (vl-file-size "c:/")
0
vl-file-size returned 0 because c:/ names a directory.
In the preceding example,