NAME
tlink32 - binding to Windows IShell Shortcut interface.
SYNOPSIS
package require tlink32 ?1.1?
 
win32::link get filename
win32::link set filename ?options?
DESCRIPTION
SEE ALSO

NAME

tlink32 - binding to Windows IShell Shortcut interface.

SYNOPSIS

package require tlink32 ?1.1?

win32::link get filename
win32::link set filename ?options?

DESCRIPTION

This is a very simple extension that provides a single command that can create, inspect, and modify Windows Shortcuts.

win32::link get filename
win32::link set filename ?options?
The get sub-command returns the various parameters that make up the shortcut definition (see below). It will return an error if the filename specified is not a valid shortcut or does not exist. The set sub-command creates the specified filename, if it does not already exists, and additionally modified the attributes of the shortcut as specfied in the options below. Note: the Win32 interface will allow you to create shortcuts with any valid filename, but the Windows explorer will only understand them if they end in the extension ".lnk". The available options are: -
-path pathName
The pathname that this shortcut points to. (default: empty)
-args string
The arguments to pass to the program specfied in -path option. (default: empty)
-cwd pathName
The directory to start the specified program in. (default: current directory)
-desc string
A human readable description of this shortcut. (default: empty)
-icon pathName
The pathname of an icon file, or executable/dll that contains icon resources. (default: empty)
-index number
The index of the icon in the file specified in -icon (if an executable/dll). (default: 0)
-show number
The numeric mask for controlling how the window appears then the program is executed - consult standard Win32 Api documentation for more details. (default: 1)
-hotkey number
The numeric mask for controlling hotkey access to this shortcut - consult standard Win32 Api documentation for more details. (default: 0)

SEE ALSO

Windows IShell API


Copyright © 1996-1999 Sensus Consulting Ltd.