Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem invoking pcAnywhere (DOS)
Message
From
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:
00730784
Views:
9
>
>Try using the full path name of the executable:
>
>oRun=CREATEOBJ('API_APPRUN','C:\AW\AWREMOTE.EXE -M=D -N="MCIB"','C:\AW','NOR')
>
>>

Hi Ed:

That ran AWRemote. Here's what I have now:
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".
- 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