Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making a shortcut
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00522646
Message ID:
00522700
Vues:
11
>Hi every one
>I need make a shortcut. With this program I can do it, but it lack the star in property:
>Destiny: (is ok)
>Star in : (this lack)
>I wonder if some one can help me.
>

>oWsh = CreateObject("WScript.Shell")
>cDesktopDir = oWsh.SpecialFolders("Desktop")
>** to indicate the """Destiny:"""
>oLnk = oWsh.CreateShortcut(cDesktopDir + "\\Shortcut to Notepad.lnk")
>**to indicate the """Star in:"""
>oLnk.TargetPath = cDesktopDir + "\\notepad.lnk"
>oLnk.Save()
>

>TIA

Andrews,

You simply need to indicate the folder/directory you want the application to use as the default. For example:
oLnk.TargetPath = "C:\MyFolder"
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform