Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDesktopShortcut ¶
CreateShortcut create a desktop shortcut with name, target and iconPath target is a file or website if iconPath is empty string, icon would be "%SystemRoot%\\System32\\SHELL32.dll,0"
Types ¶
type Shortcut ¶
type Shortcut struct { // Shortcut (.lnk file) path ShortcutPath string // Shortcut target: a file path or a website Target string // Shortcut icon path, default: "%SystemRoot%\\System32\\SHELL32.dll,0" IconLocation string // Arguments of shortcut Arguments string // Description of shortcut Description string // Hotkey of shortcut Hotkey string // WindowStyle, "1"(default) for default size and location; "3" for maximized window; "7" for minimized window WindowStyle string // Working directory of shortcut WorkingDirectory string }
Shortcut the shortcut (.lnk file) property struct
Click to show internal directories.
Click to hide internal directories.