Jump to content

Recommended Posts

Posted

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

Posted

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())

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
×
×
  • Create New...