Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving Windows File Associations via VFP
Message
 
À
02/06/2003 10:24:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00795191
Message ID:
00795198
Vues:
42
>How can I get the Windows (registry) File association via VFP or WinAPI. I am returning a file from GETFILE() call, and need to automatically load this file in Windows associated application synchronously (must terminate external application to return to VFP application for event capture).
>
>Fz - Boston MA

If the Windows Script Host is available
oShell = CREATEOBJECT("WScript.Shell")
oShell.Run(lcfile, 5, .T.)
The executable associated with the file will load and run the program in a normal window, and VFP will wait for it to terminate.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform