Click or drag to resize

FileOperationCopy Method

Copies a file or folder.

Namespace: Jam.Shell.Dialogs
Assembly: ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.2
Syntax
public static void Copy(
	ItemIdList pFileName,
	ItemIdList pFolder
)

Parameters

pFileName  ItemIdList
The file or folder that should be copied.
pFolder  ItemIdList
An existing folder where the specified file or folder should be copied.
Exceptions
ExceptionCondition
ArgumentNullExceptionif any argument is null or invalid.
Remarks
Example
The following example shows how to copy a file:
C#
ItemIdList File = new ItemIdList("C:\\file.exe");
ItemIdList Folder = new ItemIdList("D:\\");
FileOperation.Copy(File, Folder);
See Also