Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create an Icon on the desktop
Message
De
12/11/2002 12:55:52
 
 
À
11/11/2002 23:19:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00721399
Message ID:
00721714
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform