Retrieves the size of a file.

GetFileSize(cFileName)

Parameters

cFileName

The name of the file for which to retrieve the size.

Note

This can be a relative path or only a filename, the VFP function FULLPATH is used to retrieve the fully qualified filename.
The usual VFP search path (SET PATH) is used.

Return Value

The size of the file.

See Also

Reference

ADirectoryInfo
ADirEx
ADriveInfo
AFileAttributes
AFileAttributesEx
CancelFileChange
CompareFileTimes
CopyFileEx
DeleteDirectory
DeleteFileEx
FindFileChange
GetFileAttributes
GetFileOwner
GetFileTimes
GetLongPathName
GetShortPathName
MoveFileEx
SetFileAttributes
SetFileTimes

Used WinApi functions

CreateFile
GetFileSizeEx or
GetFileSize
CloseHandle