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.1
Syntax
public static void Copy(
	ItemIdList pFileName,
	ItemIdList pFolder
)

Parameters

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