ZennoLab Assemblies Documentation
FileCopy Method
See Also  Example Send Feedback
ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class : FileCopy Method
oldPath

Type: System.String

Path to the existing file.

newPath

Type: System.String

Path to the new file.

Glossary Item Box

Copies an existing file

Syntax

C# 
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.
C#Copy Code
string oldPath = {pathToExistingFile};
string newPath = {pathToNewFile};
FileSystem.FileCopy(oldPath, newPath);
PHPCopy Code
$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

See Also

© 2013 All Rights Reserved.