FileOperationCopyItem Method (String, String, String, Boolean) |
Declares a single item that is to be copied to a specified destination.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public int CopyItem(
string path,
string folderPath,
string name = null,
bool throwOnError = true
)
Parameters
- path
- Type: SystemString
The item path. - folderPath
- Type: SystemString
The folder path. - name (Optional)
- Type: SystemString
The new name for the item after it has been copied. If null, the name of the destination item is the same as the source. - throwOnError (Optional)
- Type: SystemBoolean
if set to true errors may be throw in case of Windows Shell errors.
Return Value
Type:
Int32The result of Windows Shell last operation.
Exceptions See Also