Click or drag to resize

FileSpec.Move Method

X#
Move the file represented by this file specification to a new location.

Namespace:  VO
Assembly:  VOSystemClasses (in VOSystemClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD Move(
	oFSTarget,
	lName
) AS USUAL CLIPPER
Request Example View Source

Parameters

oFSTarget (Optional)
Type: Usual
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 (Optional)
Type: Usual
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: Usual
TRUE, if the file was successfully moved; otherwise, FALSE.
Examples
This examples moves and also renames a file:
X#
1// Define original file
2oFSSource := FileSpec{"c:\data\customer.dbf"}
3// Move the file
4oFSSource:Move("a:\custdata\customer.bak")
See Also