Ticket #469: Testit.AU3

File Testit.AU3, 395 bytes (added by drummer@…, 16 years ago)
Line 
1#include <Constants.au3>
2
3Local $foo = Run("w32tm.exe /resync", @SystemDir, @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...")