See also:
- How to retrieve the size of a local file
- Basic volume information
- How to retrieve the size of a remote file (FTP)
DECLARE INTEGER GetCompressedFileSize IN kernel32;
STRING lpFileName, INTEGER @lpFileSizeHigh
LOCAL lcFilename, lnSizeLo, lnSizeHi, lnSizeActual
lcFilename = "c:\Program Files\Microsoft Office\Office\Winword.exe"
STORE 0 TO lnSizeLo, lnSizeHi
lnSizeLo = GetCompressedFileSize (lcFilename, @lnSizeHi)
? "LO and HI values of actual size:", lnSizeLo, lnSizeHi
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Unsupported.