Promotic
WikipediaLinkedInYoutubeTwitterFacebook

FileMove - method of object Pm

Description:
Move (rename) of the file (folder) within one device.
Syntax:
FileMove(sExistingFile As String, sNewFile As String) As Boolean
Calling:
Pm.FileMove sExistingFile, sNewFile
Parameters:
sExistingFile(String) The file name with the path to rename (move). If a full path is not entered, then it is completed relatively according to the application file folder.

It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.

sNewFile(String) New file (folder) name with the path. If a full path is not entered, then it is completed relatively according to the application file folder.

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:
The method cannot be used for multiple operations (e.g. *.*).
 
This method is not functional for Web panels.
Example:
Pm.FileMove "#app:data.ini", "C:/Backup/data1.ini"
PROMOTIC 8.3.21 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.Tavičská 845/21 703 00 Ostrava-Vítkovice