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