Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a .lnk file
Message
De
30/03/1999 22:48:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00203429
Message ID:
00203705
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform