>I am trying to use WINAPI shellexec function to execute
>SHORTCUT (.lnk files ), but does not work.
>
>Any application with .exe extension works fine.
>e.g. notepad.exe, wordpad.exe
>
>Even urls works fine.
>e.g. "ftp:\\vsnl.com" works fine.
>
>Also note that the SHORTCUTS work when we manually
>type in [ WINDOWS95 -> START-> RUN ] option.
>
You need to specify the shortcut name as the lpFile argument with an lpVerb of "Open"; you should be able to launch a .lnk file assuming that the registry has an association created for the .LNK filetype (it should, otherwise it wouldn't launch using the RUN verb or by double-clicking on the desktop, either.)
You could just as easily use the RUN /N verb within VFP, or something like my API_APPRUN class (downloadable from the Files Section on UT) to launch the shortcut.
Are you using the FFC implementation of ShellExecute, or have you rolled your own?
>with regards
>(U.D. Nayak)
>Email :
bilav@vsnl.com /
udnayak@hotmail.com