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:
00330875
Views:
15
>>>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
>>
>>Hi George - I may give up as "futile" my idea of using a drag/drop shortcut icon in an email for a desktop link. This looks like the next-best idea - do you (or anyone else) know if it's possible to run something like this in a setup post-executable, where it picks up the path of any server?
>
>Yep - piece of cake. If the post-setup executable is located in the network directory, you can pick up the directory with SYS(16,0).

Thanks guys, yes I will put it there. Let me see what I can do with this code. I've always used for installing my apps a) a personal visit for large apps which require procedural training anyway, or b) an ugly set of email instructions for smaller apps.

It's time to automate the (b)-type apps...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform