Maptitude GISDK Help

ParseShortcut()

Summary

Gets information from a shortcut (.lnk) file.

 

Syntax

link_info = ParseShortcut(string linkfile)

 

Argument

Contents

linkfile

The path name for the link file

 

Returns

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

 

Notes

Example

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 Codes

Error Type

Meaning

Error

linkfile is invalid

 

See Also

Function

Summary

LaunchProgram()

Starts a Windows program

CreateShortcut()

Creates a shortcut (.lnk) file pointing to a program, file or a folder

 

 

©2025 Caliper Corporation www.caliper.com