Jump to content
Sign in to follow this  
Immensee

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Have you tried piping the output from your program to a text file?

NETSTAT > OUTPUTFILE.TXT

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  

×
×
  • Create New...