![](../icons/Core_200x124_Red.png) | DiskUtilitiesTryCopyFile Method (String, String) |
Attempts to copy a file into another directory.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static bool TryCopyFile(
string sourceFilePath,
string targetFilePath
)
Parameters
- sourceFilePath
- Type: SystemString
The full path to the file you want to copy - targetFilePath
- Type: SystemString
The full path to the directory you want the file to be copied to (the directory will be created if it doesn't exist)
Return Value
Type:
BooleanTrue if the copy completes without raising an exception and the source file exists at the path specified
See Also