Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run
Message
De
25/03/2003 06:16:13
 
 
À
25/03/2003 04:11:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Run
Divers
Thread ID:
00769603
Message ID:
00769618
Vues:
16
>Hi I am using VFP 6
>I want to run an external windows program but when i run it with RUN command
>my program stop executing until closing the called program.
>How can I tell my program to continue exuting after calling an external windows program



You can use WIndows Script Host:
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
oShell = createobject("WScript.Shell")
oShell.Run("notepad.exe",SW_SHOW_NORMAL,.F.)
The last parameter controls if you run synchronously or asynchronously (e.g. wait for it to complete, or not).

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform