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:
00460280
Vues:
11
>Thanks Ed!
>
>How should I get the Process.VCX Library...

Download it from the Files Section here on UT or on my web site www.esolserv.com

>
>***************
>
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform