Ticket #469: Testit2.AU3

File Testit2.AU3, 427 bytes (added by drummerdp, 16 years ago)
Line 
1#include <Constants.au3>
2 
3Local $foo = Run("C:\Windows\System32\w32tm.exe /resync", "C:\Windows\System32", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
4Local $line
5While 1
6    $line = StdoutRead($foo)
7        If @error Then ExitLoop
8        MsgBox(0, "STDOUT read:", $line)
9Wend
10 
11While 1
12        $line = StderrRead($foo)
13        If @error Then ExitLoop
14        MsgBox(0, "STDERR read:", $line)
15Wend
16 
17MsgBox(0, "Debug", "Exiting...")