Maptitude GISDK Help |
Gets information from a shortcut (.lnk) file.
link_info = ParseShortcut(string linkfile)
Argument |
Contents |
linkfile |
The path name for the link file |
An options array with the following elements:
Option |
Type |
Contents |
Target |
String |
The path to the target program, file or folder |
Arguments |
String |
Arguments to pass to the program |
Description |
String |
Description of the shortcut |
The Description option is used for Tooltips help when the user hovers the cursor over the shortcut.
info = GetProgram()
opts = null
opts.Target = info[1] //full path to the program executable
opts.Arguments = '-n "My Favorite App"' // the -n sets program title
opts.Description = "try clicking here" // Tooltips help
linkfile = "ClickMe.lnk"
CreateShortcut(linkfile, opts)
info = ParseShortcut(linkfile)
ShowArray(info) // should look like opts array
Error Type |
Meaning |
Error |
linkfile is invalid |
Function |
Summary |
Starts a Windows program |
|
Creates a shortcut (.lnk) file pointing to a program, file or a folder |
©2025 Caliper Corporation | www.caliper.com |