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

VFile.Copy Method

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

Copy(String, String)

Method copies a file identified by the sourceFileName to the location denoted by the destFileName.

Declaration
public static void Copy(string sourceFileName, string destFileName)
Parameters
Type Name Description
String sourceFileName

The path of the source file.

String destFileName

The final path of the (copied) file.

Copy(String, String, Boolean)

Method copies a file identified by the sourceFileName to the location denoted by the destFileName.

Declaration
public static void Copy(string sourceFileName, string destFileName, bool overwrite)
Parameters
Type Name Description
String sourceFileName

The path of the source file.

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.

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