Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a .lnk file
Message
From
30/03/1999 22:48:04
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00203429
Message ID:
00203705
Views:
20
>Is there an API call or some C++ function that can be called to create a windows .lnk file (shortcut) from VFP. I want to be able to read a dbf file containing exe information and dynamically create a shortcut to the exe on the windows desktop.
>
>Rick Napolitan
>
>nappy@twd.net.com

the easiest way by far, IMHO is with the Windows Scripting Host.
The WScript.Shell object has a method CreateShortcut that does this in a snap.

The only downside is the relative new-ness of the WSH. It installs with Win98 and NT SP3 and SP4. I am pretty sure recent versions of Win95 have it too. In any case, you can install it with a self-extracting executable available from the MS site.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform