ElectronShell.writeShortcutLink method
ElectronShell › writeShortcutLink
Unofficial
Creates or updates a shortcut link atshortcutPath. Only available on Windows (win32). Signature:
writeShortcutLink(shortcutPath: string, operation: "create" | "replace" | "update", options: ElectronShortcutDetails): booleanParameters:
| 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: boolean — Whether the shortcut was created successfully.
Unofficial
Creates or updates a shortcut link atshortcutPath. Only available on Windows (win32). Signature:
writeShortcutLink(shortcutPath: string, options: ElectronShortcutDetails): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| shortcutPath | string | The path to the shortcut link. |
| options | ElectronShortcutDetails | The details of the shortcut link. |
Returns: boolean — Whether the shortcut was created successfully.