Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem invoking pcAnywhere (DOS)
Message
From
09/12/2002 04:42:02
 
 
To
08/12/2002 21:37:02
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00730525
Message ID:
00730815
Views:
9
This message has been marked as the solution to the initial question of the thread.
>
SET CLASSLIB TO PROCESS ADDITIVE
>oRun=CREATEOBJ('API_APPRUN','C:\AW\AWREMOTE.EXE -M=D -N="MCIB"','C:\AW','NOR')
>
>oRun.LaunchApp()
>LOCAL mCount
>mCount = 0
>DO WHILE oRun.CheckProcessExitCode() = 259 && app still running
>	mCount = mcount + 1
>	IF mCount < 3
>		WAIT TIMEOUT 5  &&do something, wait a little while and go back and check
>		oRun.CheckProcessExitCode()
>	ELSE
>		oRun.TerminateApp()
>                mCount = 0
>	endif
>ENDDO
>
>However, when I try to terminate AWRemote I get the message "Poperty TerminateApp is not found".


You're running the release copy, as opposed to what I have here - try KillProc() rather than TerminateApp().
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform