How To Create Shortcuts (Shell Links) within Windows
This article was previously published under Q155303 On This PageSUMMARY
Sometimes it is necessary to create shortcuts to your applications or
documents somewhere on another user's system. Do this by calling the
fCreateShellLink API function found in the Stkit432.dll file that ships
with the Setup ToolKit in Microsoft Visual Basic version 4.0 for Windows or
the Vb5stkit.dll file that ships with the Setup Toolkit in Visual Basic
5.0. The steps that follow show you how to do this.
MORE INFORMATION
Shell links, also known as shortcuts, are a convenient way to reference
objects within the shell name space (the hierarchical structure of objects
in the Microsoft Windows 95, Windows 98, and Windows Me shell) without having to keep
track of the name and location of the original object. Shell links are
referred to as shortcuts in the Context menu (that appears when you right-
click an object) of shell objects. They are implemented internally through the
IShellLink interface.
Steps for Creating a Shell Link (Shortcut) to the Desktop
C:\Windows\Calc.exeThis creates a shortcut to the Calc.exe file on the user's desktop, a program group, and a reference to it in the Startup items. REFERENCES
Please refer to the sample on the Visual Basic 5.0 and later CD-ROM:
Tools\Unsupprt\ShellLnk
In the Visual Studio CD-ROM: \common\Tools\vb\Unsupprt\ShellLnk For additional information, please see the following article in the Microsoft Knowledge Base: 140443 (http://support.microsoft.com/kb/140443/EN-US/)
How To Create a Shortcut on the Desktop
APPLIES TO
| Article Translations
|

Back to the top
