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) File (folder) name with the path to rename (move). If a full path is not entered, 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, 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 - operation passed successfully
false - operation failed
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"
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