Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem is refresh!
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00465054
Message ID:
00470812
Vues:
57
Oops! Caught again with bad HTML!
Here's the correct version (better to ALWAYS use the Preview button)


>
>* Creates an instance of the WSH Shell
>loShell = CreateObject( "WScript.Shell" )
>
>* Gets the path for Windows Desktop
>lcDesktop = loShell.SpecialFolders( "Desktop" )
>
>* Creates a wrapper object for a link file (it doesn´t create it yet)
>loLink = loShell.CreateShortcut( lcDesktop + "\Hemant.lnk" ) && Choose a name
>
>* Sets the shortcut various properties
>loLink.TargetPath = < the path to your executable here >
>loLink.IconLocation = < the location of the icon you want for the shortcut >
>loLink.WorkingDirectory = < the start path, usually same as the exe >
>loLink.WindowStyle = 3 && 1=Normal, 2=Minimized, 3=MAximized
>loLink.Arguments = < any special argument >
>loLink.HotKey = < any optional hotkey >
>
>* Finally, saves the link file, actually creating the shortcut
>loLink.Save()
>
>
>The best is to copy the different properties from a hand-made shortcut (hotkey in particular is a bit pesky).
>
>Hope this helps,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform