>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
Hi Rick,
Take a look at my lnkfiles.dll file from the UT download section (Win32 and other APIs). It comes with a help file that gives the declarations and calls using VFP syntax so you can just copy the examples from the file and paste them into your program.
Just one note, there's some errata in the documentation as to the codes returned by several of the functions that set information. I haven't gotten around to correcting it as of yet. If you get an error code, check the actual file to see whether or not you received an erroneous error code.
hth,
George
Ubi caritas et amor, deus ibi est