Promotic

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 and folders.
Return value:
Returns the file size (in bytes). If the method fails, then returns the value 0.
Note:
This method is not functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var FileSize = Pm.FileGetLength("#data:file.txt");
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- FileGetLength
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.