FileInfo: CopyTo

CopyTo

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



 Public Sub CopyTo(
	  ByVal DestFileName As String,
	  Optional ByVal OverWrite As Boolean )

Parameters

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

Remarks

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

See Also

Project VBCorLib Overview Class FileInfo Overview FileInfo Properties FileInfo Methods Attributes (let) Create