Copies srcPath to destPath. If destPath exists, the behavior is controlled by overWriteIfExists. Error handling is controlled by ignoreErrors? Returns True if the file is successfully copied.
The precise behavior of this function is defined by the host operating system and file system.
copyFile ( srcPath As String, _ destPath As String, _ overwriteIfExists As Boolean, _ Optional ignoreErrors? As Boolean = False ) As Boolean
Argument | Type | Description |
---|---|---|
srcPath | String | The source file to be copied. |
destPath | String | The path for the copy. |
overwriteIfExists | Boolean | If true , overwriting an existing file is permitted. |
ignoreErrors? | Boolean | Optional; any errors are ignored if True ; default is False . |