Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to handle external program run ??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00459666
Message ID:
00460279
Vues:
17
Thanks Ed!

How should I get the Process.VCX Library...

***************

It can be easier using API_APPRUN:


SET CLASSLIB TO Process ADDITIVE
oWinRar = CREATEOBJECT('api_apprun','winrar a -o+ bb.rar',,'MIN') && run minimized
nSuccess = oWinRar.LaunchAppAndWait()
nExitCode = oWinRar.CheckProcessExitCode()
DO CASE
CASE nSuccess = 1
wait window 'Finished - ' + transform(nExitCode)
CASE nExitCode = 259
wait window 'Still running'
OTHERWISE
wait window oWinRar.icErrorMessage + ' - ' + transform(nExitCode)
ENDCASE
Burns a lot fewer cycles, is interruptible, and access exit codes
Joe Mamokan
Database Specialist
Email Address: mamokan@eudoramail.com
Url Address: http://visnet_dd.tripod.com
"Can you VISUALIZE Quick Data Access"
Cell # +639172482033
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform