Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically create desktop shortcut
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01111722
Message ID:
01111726
Vues:
27
Quickly tried a few, but this one worked (on WinServer2003). Hasta luego.
oShell           = CREATEOBJECT("WScript.Shell")
oFso             = CreateObject("Scripting.FileSystemObject")
cwdesktopfolder  = oShell.SpecialFolders("Desktop")

lnk              = oShell.CreateShortcut(cwdesktopfolder + "\MyHelp.lnk")
lnk.TargetPath   = "D:\Program Files\IBiz\ActiveX Edition\messenger\ibizmsg.chm"
lnk.WindowStyle  = 1
lnk.Hotkey       = "CTRL+SHIFT+F"
lnk.IconLocation = "D:\Program Files\IBiz\ActiveX Edition\messenger\ibizmsg.chm, 0"
lnk.Description  = "MyHelp"
lnk.WorkingDirectory = "c:\temp"
lnk.Save
>You're welcome. :)
>
>>Sergey... muchos gracias. Bit surprised it took almost a minute on a sat nite. Emailing u a beer as i type. Thanks again.
>>
>>>>I looking to programmatically create a desktop shortcut icon in order to launch a CHM file thats been copied from a server to the workstation. Does shellexecute allow for this? Any examples?
>>>
>>>You can use WSH. See Re: How to Create Shortcuts/Get Desktop Folder Message #866827 and Message #866778
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform