Update cookies preferences
Promotic

DirCreate - method of the Pm object

Description:
Creates the folder for files.
Syntax:
Boolean DirCreate(String sDir)
Parameters:
sDir(String) Relative or absolute path and folder name that has to be created.
If a relative path is entered, then it refers to the folder of the running application.
 
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files or folders.
Return value:
true - on success
false - on error
Note:
This method is not functional in Web panels.
Example1:
JavaScriptVBScriptSelect and copy to clipboard

Pm.DirCreate("#data:Boiler1");
Pm.DirCreate("C:/Data/Boiler1");
Pm.DirCreate("C:\\Data\\Boiler1");
Example2:
If folder Boiler1 does not exist, then it is created.
JavaScriptVBScriptSelect and copy to clipboard

if (! Pm.DirExist("#data:Boiler1"))
{
Pm.DirCreate("#data:Boiler1");
}
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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