Jump to content

DOS return


Recommended Posts

Is there a way to, when sending a dos command, recieve the output from the console?

IE

$command = 'stupid'

$ret = _dos($command)

where ret would = Bad Command or something

or

$command = 'cd ..'

$ret = _dos($command)

where ret would = the new dir your in...

I AM ORCA!! A VERY POWERFUL WHALE!!!

Link to comment
Share on other sites

StdOutRead() will read output from a process.

StdInWrite() will write input to a process

StdErrRead() will read error a StdErr stream from a process

You're looking at StdOutRead

That returns all of the output, the other ones will return the exit code, its process handle, or something else...i don't remember off hand.

If you want to ping something though, and want to see the detailed results (i.e. the dos window), that's when you'll use the stdoutread() function.

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
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...