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!

Suggest ways to return to a program after pc script finishes.

Status
Not open for further replies.

rajco

Vendor
Apr 8, 2003
3
US
I would like to call pcplus4.8, automatically run a script that transfers files, and return to the calling .exe when finished. The calling .exe is a DOS assembler program. How does the return from pcplus to the calling .exe work?
 
The problem I see you'll have is getting Procomm to close without any user interaction although I think I've seen a thread or two here dealing with that.

If you want the EXE to wait until Procomm is done I can think of two strategies:

1. Initiate a DDE link and close the DDE link in Procomm cleanup at end of Procomm script. Or use Excel as an intermediary with Excel using Procomm as a DDE server and your EXE using Excel as a server with a DDEadvise type of access.

2. Use a text file or INI file to signal to your EXE that procomm has finished.

IF you use a text file you might have access conflict between the Procomm script and your EXE routine checking the file depending on the method you use to open the text file or INI in the EXE.

Hope these ideas helped. DT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top