Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a shortCut
Message
De
26/01/2002 23:23:11
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00611190
Message ID:
00611199
Vues:
22
>How can I create a shortcut from VB 6.0

One simple way is by using the Windows Script Host:
Set shell = CreateObject("WScript.Shell")
DesktopDir = shell.SpecialFolders("Desktop")
Lnk = shell.CreateShortcut(DesktopDir & "\\Shortcut to Notepad.lnk")
Lnk.TargetPath = shell.ExpandEnvironmentStrings("%windir%") & "\notepad.exe"
Lnk.Save()


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform