Promotic
WikipediaLinkedInYoutubeTwitterFacebook

DirRemove - method of the Pm object

Description:
Deletes the file folder.
Syntax:
Boolean DirRemove(String sDir)
Parameters:
sDir(String) Relative or absolute path and folder name.
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.
Return values:
true - on success
false - on error
Note:
If a relative path is entered, then it refers to the folder of the running application.
The method fails if the folder is not empty. The method cannot be used for multiple remove of folders (e.g. "*.*").

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

Pm.DirRemove("#data:Folder1");
Example2:
JavaScriptVBScriptSelect and copy to clipboard

var bDirRemove = Pm.DirRemove("#data:Folder1");
PROMOTIC 9.0.17 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- DirRemove
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice