Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem invoking pcAnywhere (DOS)
Message
From
07/12/2002 18:05:38
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00730525
Message ID:
00730668
Views:
7
Thanks Ed. I will try this out. Doug Hennig also suggested that I look at your class. Thank you for pitching in. do you see this as an issue with pcAnywhere or something else (i.e. VFP code)?

Thanks.

>If this is written in VFP5 or later, you might want to try using my API_APPRUN class as shown below:
>
>
SET CLASSLIB TO PROCESS ADDITIVE
>oRun = CREATEOBJ('API_APPRUN','awremote -M=D -N="MCIB"','C:\AW','NOR')
>oRun.LaunchAppAndWait()
>? oRun.CheckProcessExitCode() && displays any error code issued from awremote
>oRun=NULL
>
>You can instead use the LaunchApp() method and poll for termination using CheckProcessExitCode() (it will return 259 until the program actually is terminated.) If you feel that it hung, you can invoke the TerminateProcess() method to force the launched app to close and release all its resources back to the OS in an immediate fashion.
>
>No batch file involved, and the behavior controlled by FOXRUN.PIF is not an issue; in fact, if a PIF is associated with AWREMOTE, it'll be used to control the execution environment.
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform