Sign in to follow this  
Followers 0
rbhkamal

How do I get the exit code with run()

5 posts in this topic

Hi,

How do you retrive the exit code for a process when using run() (not runAndWait()). I can't use runandwait becuase I need to collect the error stream.

Regads,

Ribhi


"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites



You can use the elusive ProcessGet UDF posted here:

#394952

- or -

Original post in Example Scripts:

http://www.autoitscript.com/forum/index.php?showtopic=23096

That UDF need to be updated for the new release since it uses a wrong definition for a pointer... "int_ptr" needs to be "int*"

Jos


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

Share this post


Link to post
Share on other sites

That UDF need to be updated for the new release since it uses a wrong definition for a pointer... "int_ptr" needs to be "int*"

Jos

That is such a great function. It would be nice to have something integrated.

Share this post


Link to post
Share on other sites

Now I remmeber..... I knew there was something on here I just couldn't find it (becuase I wasn't searching example scripts)

Thanks


"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

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  
Followers 0