Promotic

FileMove - method of the Pm object

Description:
Move (rename) of the file (folder).
Syntax:
Boolean FileMove(String sExistingFile, String sNewFile)
Parameters:
sExistingFile(String) The file name with the path to rename (move).
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.
sNewFile(String) New file name (folder 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:
true - on success
false - on error
Note:
The method cannot be used for multiple operations (e.g. *.*).
Both files must be located on the same medium (disc).

This method is not functional in Web panels.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

Pm.FileMove("#app:data.ini", "C:/Backup/data1.ini");
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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