Files.GetSize

Top  Previous  Next

 

Syntax

function Files.GetSize(FileName: string): large-integer

 

Alternative Names

ibec_FileSize

 

Description

Returns the size in bytes for the file identified by FileName. If an error occurs, NULL is returned and you can use Shell.GetLastError or Shell.GetLastErrorMessage for more information.

 

See also

Files.GetAttr
Files.GetDateTime

 

Example

execute udsblock 

as

begin

  fsize = Files.GetSize('c:\pagefile.sys'); 

  GUI.ShowMessage('Pagefile size in bytes: ' || fsize);

end