Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Window Scripting Host
Message
 
 
À
27/03/2002 18:46:54
Steve Summers
Pima County Superior Court
Tucson, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00638196
Message ID:
00638400
Vues:
16
>I need to be able to launch different files from VFP. For instance, I need to code a command button to launch Word or WordPerfect depending on the file type. In the Windows Run window I can point to a .wpd and it will open WordPerfect with the .wpd file. When I point the Window Run window at a .doc file it opens Word and the .doc file. I need this same functionality from VFP using a command button. Someone told me to use WSH to do this. Does anyone have any WSH code or even a better method to do this?

If WSH isn't available, you could always go straight to the WinAPI call. See API#12636 for an example.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform