Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create an Icon on the desktop
Message
From
12/11/2002 12:55:52
 
 
To
11/11/2002 23:19:18
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00721399
Message ID:
00721714
Views:
10
Michael,

Here is some code that I use:

WshShell = CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
oShellLink = WshShell.CreateShortcut(strDesktop + "\RBOM Upload.lnk")
oShellLink.TargetPath = "\\SORL0000\GROUPS\GSD\PUBLIC\MATCNTL\BOM\RBOMUpload.EXE"
oShellLink.WindowStyle = 1
* oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.IconLocation = "\\SORL0000\GROUPS\GSD\PUBLIC\MATCNTL\BOM\RBOMUpload.EXE, 0"
oShellLink.Description = "RBOM Upload"
oShellLink.WorkingDirectory = "C:\Temp"
oShellLink.Save
Previous
Reply
Map
View

Click here to load this message in the networking platform