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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

FileSystem Class
FileSystem Members

Send Feedback