Promotic

FileDelete - method of the Pm object

Description:
Deletes the file.
Syntax:
Boolean FileDelete(String sFile)
Parameters:
sFile(String) The file name with the path to delete.
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:
true - on success
false - on error
Note:
The method can be used for multiple deleting (e.g. *.*).

This method is not functional in Web panels.
Example1:
JavaScriptVBScriptSelect and copy to clipboard

Pm.FileDelete("#temp:*.dat");
Example2:
JavaScriptVBScriptSelect and copy to clipboard

var bFileDelete = Pm.FileDelete("#temp:*.dat");
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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