FileGetLength - method of the Pm object
Description:
Returns the size of the file (in bytes).
Syntax:
Long FileGetLength(String sFile)
Parameters:
sFile | (String) The file name with the path.
If a full path is not entered, then it is completed relative to the application folder.
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files or folders. |
---|
Return value:
Returns the file size (in bytes). If the method fails, then returns the value 0.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var nFileSize = Pm.FileGetLength("#data:file.txt");
Dim nFileSize
nFileSize = Pm.FileGetLength("#data:file.txt")