Parameters
- oldPath
Type: System.String
Path to the existing file.
- newPath
Type: System.String
Path to the new file.
The following example shows call the FileCopy method.
| C# | Copy Code |
|---|---|
string oldPath = {pathToExistingFile}; string newPath = {pathToNewFile}; FileSystem.FileCopy(oldPath, newPath); | |
| PHP | Copy Code |
|---|---|
$oldPath = {pathToExistingFile}; $newPath = {pathToNewFile}; FileSystem::FileCopy($oldPath, $newPath); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family