Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute but wait for completion?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00354373
Message ID:
00354598
Vues:
15
Nigel,
* create an instance of the WSH Shell object
local loShell
loShell = createobject('wscript.shell')
* 0 = minimised window for the command, .t. = wait for a return value
lnResult = loShell.Run(m.lcCommandLine, 0, .t.)
Cheers,

Andrew


>I need to call an old 16bit exe file so I'm using ShellExecute. The only problem is that I also need to wait for completion of this third-party executable before my VFP app can continue processing.
>
>Any ideas?
>
>TIA,


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform