ShortcutFileInfoCopyTo Method

Copies an existing shortcut file to a new file, allowing the overwriting of an existing file.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public ShortcutFileInfo CopyTo(
	string destFileName,
	bool overwrite
)

Parameters

destFileName  String
The name of the new file to copy to.
overwrite  Boolean
to allow an existing file to be overwritten; otherwise, .

Return Value

ShortcutFileInfo
A new shortcut file, or an overwrite of an existing file if overwrite is true.

If the file exists and overwrite is false, an IOException is thrown.

See Also