Shortcut - Create

Creates a shortcut on the user's system.

Action ID:
Action Category:
Action List Syntax:

11
Shortcut
Shortcut.Create (<<FOLDER>>, <<DESCRIPTION>>, <<TARGETFILE>>)

Settings

Folder:

The location where the shortcut will be created (i.e., it will be created in this folder). If the folder does not exist then it will be created automatically. This field cannot be empty.

Shortcut description:

The label that will be given to the shortcut. This is the shortcut's "name"—i.e., what the user will see.

Target file:

The full path and file name of the file that the shortcut will point to.  This field cannot be empty.

Command line arguments:

The command line arguments (if any) that will be passed to the file linked by the shortcut, when the user activates the shortcut.

Working directory:

The working directory that will be used for the file linked when the shortcut is activated.

Use external icon:

Whether or not this shortcut will use and external icon.  If selected the icon specified in the "External Icon Path" will be used.  If this is not selected the icon associated with the file type will pointed to will be used.  

External icon path:

This is the full path to an *.ico file.  This path will only be used if "use external icon" is selected.

Icon index:

This represents the icon index if the file type that the shortcut points to.

Run Mode:

This tells the shortcut which mode if is to use then it launches the file.  The three available modes are:

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_CREATE_SHORTCUT

MSG_ERR_CREATE_SHORTCUT
MSG_ERR_CREATE_DIR
<<FOLDERNAME>>

2

MSG_ERR_CREATE_SHORTCUT

MSG_ERR_CREATE_SHORTCUT
MSG_ERR_SHORTCUT_SYSTEM
<<TARGETFILE>>
<<FOLDERNAME>>\<<SHORTCUTDESCRIPTION>>

Examples

None