Show / Hide Table of Contents

Method shortcutFile.openOrCreate


Overload

Creates a new shortcutFile instance that can be used to create or modify a shortcut file.

public static shortcutFile openOrCreate(string lnkPath)
Parameters
lnkPath  (string)

Shortcut file (.lnk) path.

Returns
shortcutFile
Exceptions
ArgumentException

Not full path.

AuException

Failed to open existing .lnk file.

Remarks

Exception if file exists but cannot open it for read-write access. You can get and set properties and finally call shortcutFile.Save. If the shortcut file already exists, Save updates it.