Orca 0 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!!! Share this post Link to post Share on other sites
MSLx Fanboy 0 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()) Share this post Link to post Share on other sites
Orca 0 Posted May 11, 2005 (edited) [thanks] Edited May 11, 2005 by SiC_Goat I AM ORCA!! A VERY POWERFUL WHALE!!! Share this post Link to post Share on other sites