Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to execute WIN95 SHORTCUTS from within VFP 6.0
Message
De
25/06/1999 15:39:28
 
 
À
25/06/1999 08:38:50
Upendra Nayak
Cadsys Technologies
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00233896
Message ID:
00234147
Vues:
29
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform