Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VFileInfo.CopyTo Method

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

CopyTo(String, Boolean)

Method copies the file to the location denoted by the destFileName.

Declaration
public VFileInfo CopyTo(string destFileName, bool overwrite)
Parameters
Type Name Description
String destFileName

The final path of the (copied) file.

Boolean overwrite

When the overwrite is set to to true and destFileName exists then the destination file is overwritten. When the overwrite is set to to false and destFileName exists then the IOException is thrown.

Returns
Type Description
VFileInfo

CopyTo(String)

Method copies the file to the location denoted by the destFileName.

Declaration
public VFileInfo CopyTo(string destFileName)
Parameters
Type Name Description
String destFileName

The final path of the (copied) file.

Returns
Type Description
VFileInfo
In This Article
  • CopyTo(String, Boolean)
  • CopyTo(String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies