Orca Posted May 11, 2005 Share Posted May 11, 2005 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 More sharing options...
MSLx Fanboy Posted May 11, 2005 Share Posted May 11, 2005 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 More sharing options...
Orca Posted May 11, 2005 Author Share Posted May 11, 2005 (edited) [thanks] Edited May 11, 2005 by SiC_Goat I AM ORCA!! A VERY POWERFUL WHALE!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now