[ autoit ]
ListOnline() Func ListOnline() Local $foo, $sActiveLine, $sLine $foo = Run(@ComSpec & " /c net view ", @SystemDir, @SW_HIDE, 2) While 1 $sActiveLine = StdoutRead($foo) If @error Then ExitLoop $sLine = $sActiveLine WEnd ConsoleWrite($sLine) Endfunc
[ autoit ]
ListOnline() Func ListOnline() Local $foo, $sActiveLine, $sLine $foo = Run(@ComSpec & " /c net view ", @SystemDir, @SW_HIDE, 2) While 1 $sActiveLine = StdoutRead($foo) If @error Then ExitLoop ConsoleWrite($sActiveLine) WEnd Endfunc
Hello guys, why doesn't the first script display anything while the second one works fine?
Please help me understand. Thank you!