FileSystem.Move(String, String) 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 millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

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

 

Method Signature

FileSystem.Move(

String sourcePath,


String destinationPath)

 

 

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.

 

 

 

Syntax

FileSystem.Move(myString1, myString2);

 

 

See also

FileSystem Object

FileSystem.Move

Interfacing with Files Guide