FileSystem.Move(String, String, Variable) Method

Top 

Description

Moves the specified file or directory sourcePath to the destinationPath. When moving a directory, all files and subfolders will be moved, recursively. In the event that the move operation overwrites existing files or directories, the move is not atomic. An error will be reported if the move operation is unsuccessful.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

FileSystem.Move(

String sourcePath,


String destinationPath,


Variable overwrite)

 

 

Arguments

sourcePath


Description:

The source file or directory which is to be moved.

 

 

destinationPath


Description:

The destination file or directory to which the source will be moved. destinationPath and sourcePath must be of the same type.

 

 

overwrite


Description:

A flag which determines if the move operation can overwrite existing files or directories. If this is false, an error will be reported if the destination already exists. If this is true, the move operation is not atomic.

Valid Values:

Value

Label

0

false

1

true

 

 

 

 

Syntax

FileSystem.Move(myString1, myString2, myVariable1);

 

 

See also

FileSystem Object

FileSystem.Move

Interfacing with Files Guide