FileSpec.Move Method (FileSpec, Logic) | |
Move the file represented by this file specification to a new location.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD Move(
oFSTarget AS FileSpec,
lName AS LOGIC
) AS LOGIC
public virtual bool Move(
FileSpec oFSTarget,
[DefaultParameterValueAttribute(false, 0)] bool lName
)
Request Example
View SourceParameters
- oFSTarget
- Type: FileSpec
The name of the target file, including an optional drive, directory, and extension. The file is created following operating system rules. Note that a file can be moved across volumes. - lName
- Type: Logic
Logical parameter. TRUE causes an auto-rename of the target file if a file conflict occurs during the move. The default is FALSE.
Return Value
Type:
Logic
TRUE, if the file was successfully moved; otherwise, FALSE.
Examples
This examples moves and also renames a file:
1
2oFSSource := FileSpec{"c:\data\customer.dbf"}
3
4oFSSource:Move("a:\custdata\customer.bak")
See Also