Skip to content

ElectronShell.writeShortcutLink method

ElectronShell › writeShortcutLink

Unofficial

Creates or updates a shortcut link at shortcutPath. Only available on Windows (win32).

Signature:

writeShortcutLink(shortcutPath: string, operation: "create" | "replace" | "update", options: ElectronShortcutDetails): boolean

Parameters:

Parameter Type Description
shortcutPath string The path to the shortcut link.
operation "create" | "replace" | "update" The operation to perform on the shortcut link.
options ElectronShortcutDetails The details of the shortcut link.

Returns: booleanWhether the shortcut was created successfully.


Unofficial

Creates or updates a shortcut link at shortcutPath. Only available on Windows (win32).

Signature:

writeShortcutLink(shortcutPath: string, options: ElectronShortcutDetails): boolean

Parameters:

Parameter Type Description
shortcutPath string The path to the shortcut link.
options ElectronShortcutDetails The details of the shortcut link.

Returns: booleanWhether the shortcut was created successfully.