Jump to content
Sign in to follow this  
gblss

Passing parameters back to program that called script

Recommended Posts

gblss

Is there a way to pass parameters back to the program that called a script. Example: we are calling a script that does a shellexecutewait. We are now creating a text file and writing the return codes (if the process failed), to that file but would like to receive the return code back to the program that called the script instead. Is this possible? We are calling the script from a cobol program. Thanks in advance for any advice.

Share this post


Link to post
Share on other sites
gblss

If program A calls the script can "whatever" be returned or passed back to program A so program A can determined the success of failure of the script ( in this case shellexecutewait).

Share this post


Link to post
Share on other sites
gblss

Sorry, for my ignorance how would you set the/a exit?

Share this post


Link to post
Share on other sites
gblss

Never mind, I see how thanks for your help, will give this a try.

Share this post


Link to post
Share on other sites
Jos

The helpfile contains the description for the Exit command. ;)

( in this case shellexecutewait).

Could be you need to compile "for console" on the aut2exe menu or use the following when using the full SciTE4Autoit3:

#AutoIt3Wrapper_Change2CUI=Y


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×