Jump to content

How do I get the exit code with run()


rbhkamal
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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.

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...