Shell_CreateShortcutΒΆ
Shell_CreateShortcut creates a short cut to a program or file on the desktop, in the program menu or in other places.
-
bool = Shell_CreateShortcut(ssLinkTarget, ssArgs, ssLinkName, ssFolder, ssDescription, ssIconPath, nIconIndex)
Return Value
bool
Parameters
-
ssLinkTarget
ssLinkTarget is the target, for example
GetRootDirectory() + "program/uniplot.exe"
.
-
ssArgs
ssArgs are the command parameters. Can be empty.
-
ssLinkName
ssLinkName is the link name, for example
UniPlot 5.2
.
-
ssFolder
ssFolder is the directory, see Shell_GetSpecialFolder.
-
ssDescription
ssDescription is a description of the link.
-
ssIconPath
ssIconPath is the complete path to the exe file or DLL with the icon, for example
GetRootDirectory() + "program/uniplot.exe"
.
-
nIconIndex
nIconIndex is the index of the icon (0 for the first icon).
Example
ssUniPlot = GetRootDirectory() + "program/uniplot.exe";
ssFolder = Shell_GetSpecialFolder(2); // Start Menu\Programs
print Shell_CreateShortcut(ssUniPlot, "", "UniPlot-5.2.1", ..
ssFolder, "", ssUniPlot, 0);
History
Version | Description |
---|---|
5.3.0 | New. |
See also
id-361107