MoveDirectory
MoveDirectory
Moves a directory from one location to another.
Syntax
FileSystem.MoveDirectory(SourceDirectory, DestinationDirectory)
FileSystem.MoveDirectory(SourceDirectory, DestinationDirectory, Overwrite)
Parameters
SourceDirectory |
String, input |
|
Path of the directory to be moved. |
||
DestinationDirectory |
String, input |
|
Path of the directory to which the source directory is being moved. |
||
Overwrite |
Boolean, input |
|
Whether to visually track the operation's progress. Default is OnlyErrorDialogs. |
Example
This example moves Directory1 inside Directory2:
Sub Main()
FileSystem.MoveDirectory "C:\Users\Public\Directory1", "C:\Users\Public\Directory2"
End Sub