>hi all!
>
>i would like to know if anyone does know how to create desktop shortcuts using code. i want to build a funtion that recieves the path for the exe file as a parameter and then creates the shortcut by itself. i need this feature to have increased security in anetwork application i am bulding.
>
>thanks!
>luis david meneses macchiavello
>luisdavidmeneses@hotpop.com
Luis,
First, VFP can't do this directly. It needs either a DLL to call or a COM object that has this functionality. Two ways come to mind immediately.
If the Windows Script Host is either available or can be installed, it can do this. See the second of the series of articles that Ed Rauh and I have written on the VFUG (
www.vfug.org) site. It was in the October, 2000 issue of the newsletter.
The other way would be to use something like my Lnkfiles.dll. It's available in the download section here at the UT, under Win32 and Other APIs. The documentation will tell you all you need to know to use it.
George
Ubi caritas et amor, deus ibi est