Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello: Tried to search for this

Status
Not open for further replies.

papollo

Programmer
Oct 19, 2001
71
US
Hello:

Tried to search for this problem in previous posts. Could not find anything close to my problem.

I have a pc that has a procomm session active all the time waiting for incoming data.

What I want to do is Shut that session down and run a anther seesion via a Aspect script. After the session completes ,I want to start the previous session.

How do i shut that existing session and start my script and then start the other when my script is complete???

Thanks again.
 
You can use the pwexit command to close down the current session of Procomm, as long as a script is still running in it. There's not a way in ASPECT to close down another session of Procomm other than the one the script is currently running in. aspect@aspectscripting.com
 
You cannot do it exclusively with Aspect commands, but you can use Aspect's DOS related "run" command which will chain the script in a new window and still allow the first session to terminate.

Save these as two seperate scripts in the default Aspect folder and try it. I tested this successfully about 10 times and it did not crash.


;CALL THIS SCRIPT "test1.was"
proc main
Pause 2
Usermsg "This is the first script."
if findfirst "*test2.wax" ; Find a script file to run.
run "PW4 test2.wax"
PWExit
else
errormsg "Script not found!"
endif
endproc


;CALL THIS SCRIPT "test2.was"
proc main
Pause 2
Usermsg "This is the second script."
if findfirst "*test1.wax" ; Find a script file to run.
run "PW4 test1.wax"
PWExit
else
errormsg "Script not found!"
endif
endproc

Robert Harris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top