CopyDirectory
CopyDirectory
Copies the contents of a directory to another directory.
Syntax
FileSystem.CopyDirectory(SourceDirectory, DestinationDirectory)
FileSystem.CopyDirectory(SourceDirectory, DestinationDirectory, Overwrite)
Parameters
SourceDirectory |
String, input |
|
First path to be combined. |
||
DestinationDirectory |
String, input |
|
Second path to be combined. |
||
Overwrite |
Boolean, input |
|
True to overwrite existing files, otherwise False. Default is False. |
Example
Sub Main()
FileSystem.CopyDirectory "C:\Users\Public\My Directory\", "C:\Users\Public\Test Directory\"
End Sub