CopyTo Method (destFileName, overwrite)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation CopyTo Method (destFileName, overwrite)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionArchiveInfoCopyTo(String, Boolean)
Copies an existing archive to another location, optionally overwriting the destination file.
Declaration Syntax
C# Visual Basic Visual C++
public void CopyTo(
	string destFileName,
	bool overwrite
)
Public Sub CopyTo ( 
	destFileName As String,
	overwrite As Boolean
)
public:
void CopyTo(
	String^ destFileName, 
	bool overwrite
)
Parameters
destFileName (String)
The destination file path.
overwrite (Boolean)
If true, the destination file will be overwritten if it exists.

Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.9.1006.0)