Promotic

FileCopy - method of the Pm object

Description:
Copy of the file.
Syntax:
Boolean FileCopy(String sExistingFile, String sNewFile, Boolean bFailIfExist)
Parameters:
sExistingFile(String) The file name with the path to copy.
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) Path and name of the newly created file. Folder, where the file is created, must exist, otherwise the method fails.
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.
bFailIfExist(Boolean) Operation mode
0 - existing file will be overwritten by a new one
1 - the method fails if the created file already exists
Return value:
true - on success
false - on error
Note:
The method cannot be used for multiple copy (e.g. *.*).

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

Pm.FileCopy("#data:boildat.ini", "C:/Backup/boildat1.ini", 0);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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