FileInfo: CopyTo

CopyTo

Copies this file to a new location, with optional overwrite.



 Public Function CopyTo(
	  ByRef DestFileName As String,
	  Optional ByVal OverWrite As Boolean = False ) As FileInfo

Parameters

DestFileName
[ByRef] String. The new filename this file will be copied as.
OverWrite
[ByVal] Optional. Boolean. Permission to overwrite an existing file.  

Default: False

Return Values

FileInfo - 

Remarks

The destination must be on the same volume as this file.

See Also

Project CorLib Overview

Class FileInfo Overview