Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle external program run ??
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00459666
Message ID:
00460279
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform