Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add a Menu Item to Windows Start Menu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00412380
Message ID:
00413279
Vues:
25
Thanks George this is what I needed.

>>Thanks George,
>>
>>That's what I was trying to ask just using the wrong words....
>>
>>By "write the short cut" I assume you mean to do the same code as when you create a desktop shortcut... but put it in the start menu/programs/my new program directory.
>>
>>Is there an easy way to find the Start Menu folder?
>>
>>Thanks for the reply
>
>Not without going beyond VFP. First, I'd recommend the WSH. It encompasses all the things you'll need to create a short cut or modify and existing one.To get the start menu
oShell = CREATEOBJECT("WScript.Shell")
>lcstartmenu = oShell.SpecialFolders("StartMenu")
>oShortCut = oShell.CreateShortCut(ADDBS(lcstartmenu) + "My link.lnk")
>oShortCut.TargetPath = "C:\My Directory\MyExe.Exe"
>oShortCut.Save()
There are other properties involved that you can set.
>
>If you don't have access to the Windows Script Host, my LnkFiles.dll can do the same thing. It's available for download here in the Win32 and Other APIs section, and comes with complete documentation with VFP samples.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform