Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | shortcut.create SEARCH    

  Functions
shortcut.create

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
shortcut.create

Language: MioScript
Product: MioFactory


Syntax

shortcut.create(ShortcutFile, Application, Description, IconFile, Params)


Parameters

STRINGShortcutFileShortcut file (.lnk) to be created.
For the possible locations of your shortcuts: path....
STRINGApplicationFile to link to. It can be an exe file, an URL, a document, etc.
STRINGDescriptionTooltip text.
STRINGIconFileIcon file (.ico).
STRINGParamsOptional.
Parameters to be sent to the called application.


Return value

No value is returned.


Description

Creates a shortcut file (extension .lnk) at the specified location.





MioScript Sample Code

&sourceFile = path.install(null, "myApplication.exe")
&targetFile = path.desktop("myApplication.lnk")
&iconFile = path.install(null, "app.ico")

shortcut.create(&sourceFile, &targetFile, "{APP_NAME}", &iconFile, null)