Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I create a desktop shortcut for my app?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00316189
Message ID:
00316274
Views:
21
>I hope there's an easier way besides copying an existing .LNK file and doing a binary edit on it programmatically!
>
>Thanx,

Hi Joe,

You can use my lnkfiles.dll to do this, but you can also use the Windows Script Host (WSH). Here's a sample.
* lcfile is the file the link will point to
* lcname is the name of the shortcut to appear on the desktop
* with the lnk extension
oShell = CREATEOBJECT('WScript.Shell')
lcdesktop = oShell.SpecialFolders('Desktop')
oLink = oShell.CreateShortcut(lcdesktop + "\" + lcname)
oLink.TargetPath = lcfile
oLink.Save
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform