Create File Shortcut
This Automation Manager object creates a shortcut to a local file.
Privileges
Normal
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
Shortcut To | String | Yes | This is the destination of the shortcut (the file to be opened). |
Shortcut File Name | String | Yes |
This is the shortcut full path. Note that the extension ‘’lnk’’ is optional. If not provided, the object will add it. Either provide c:\temp\file or c:\temp\file.lnk |
Output Parameters
Name | Type | Description |
---|---|---|
Result | Number | Returns a success value of zero or any value other than zero to indicate failure. |
Result String | String | Object execution error details. |
Example Input Parameters
Name | Type | Required | Example |
---|---|---|---|
Shortcut To | String | Yes | C:\windows\System32\notepad.exe |
Shortcut File Name | String | Yes | C:\temp\notepad.lnk |