Jump to content

Getting the return information from cmd.exe


Recommended Posts

hey,

I've tested the command Run and _RunDOS a few times. Is it possible to get some data from the running program?

like:

$cmd = RunWait(@ComSpec & " /c " & 'netstat', "", @SW_HIDE)

display($cmd)
Sleep(2000)

Exit

Func display($msg)
;; shows the message to the screen
;; code, code... etc.
EndFunc

This is just an example to understand what i say, but this won't work, because the Run Command returns the exit command from the running program.

So is it possible to do something like that?

Thanks,

-ImMenSe

Link to comment
Share on other sites

  • Moderators

Hey, i've installed it and all, but i can't find StdoutRead.../ :D

-ImMenSe

Alt+F1 for the Beta Help file when you have SciTe open.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...