ZennoLab Assemblies Documentation
FileCopy Method
Example 

Type: System.String

Path to the existing file.

Type: System.String

Path to the new file.

Copies an existing file
Syntax
public static void FileCopy( 
   string oldPath,
   string newPath
)

Parameters

oldPath

Type: System.String

Path to the existing file.

newPath

Type: System.String

Path to the new file.

Example
The following example shows call the FileCopy method.
string oldPath = {pathToExistingFile};
string newPath = {pathToNewFile};
FileSystem.FileCopy(oldPath, newPath);
$oldPath = {pathToExistingFile};
$newPath = {pathToNewFile};
FileSystem::FileCopy($oldPath, $newPath);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

FileSystem Class
FileSystem Members

Send Feedback