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!

getting return code from .exe from within script

Status
Not open for further replies.

Kdodson

Programmer
Aug 17, 2004
2
US
I cannot figure out how to get a return code from an .exe executed with the run command. I also cannot figure out how to get it from the dos command either when running a batch file. Its being returned when the application finishes. I have to check it to make sure the application finished properly so that I can do the file transfer if it does not finish properly then I do not want to transfer the file.
 
the application exits with a specific code:
c++
" return 1;"
basically you are saying there is no easy way of trapping this return code from within the ASPECT scripting language. I have to save the code using dos commands in a batch file and then access the env variables. Boy that really stinks. I played around with a terminal program called Zoc and it was super easy to do this stuff but because it wasnt as well known I decided to use procomm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top