jslegers Posted January 14, 2008 Share Posted January 14, 2008 Hello, Can I use $STDOUT_CHILD for the output of an dos command ? I want to use md5sum and the result of that I want to use as a variable. $var1=Run (md5sum, ,$STDOUT_CHILD) With kind regards, John Slegers Link to comment Share on other sites More sharing options...
rcaught Posted January 14, 2008 Share Posted January 14, 2008 Hello,Can I use $STDOUT_CHILD for the output of an dos command ?I want to use md5sum and the result of that I want to use as a variable.$var1=Run (md5sum, ,$STDOUT_CHILD)With kind regards,John SlegersI've used P5ych0Gigabyte's hashing UDF with a lot of success. I know this isn't the answer to your question but could prove useful.http://www.autoitscript.com/forum/index.php?showtopic=19838 Link to comment Share on other sites More sharing options...
Xenobiologist Posted January 14, 2008 Share Posted January 14, 2008 (edited) Hi, #include <Constants.au3> $text = '' Global $command = 'ipconfig' $stream = Run(@ComSpec & ' /c ' & $command, '', @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $line = StdoutRead($stream) $text &= @CRLF & $line If @error Then ExitLoop WEnd MsgBox(0, "STDOUT read:", $text) So long, Mega Edited January 14, 2008 by Xenobiologist Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
jslegers Posted January 14, 2008 Author Share Posted January 14, 2008 (edited) Hi, #include <Constants.au3> $text = '' Global $command = 'ipconfig' $stream = Run(@ComSpec & ' /c ' & $command, '', @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $line = StdoutRead($stream) $text &= @CRLF & $line If @error Then ExitLoop WEnd MsgBox(0, "STDOUT read:", $text) So long, Mega Thank you the help guys. Edited January 15, 2008 by jslegers 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