Guest User

Untitled

a guest
Apr 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.48 KB | None | 0 0
  1. #include <Constants.au3>
  2.  
  3. Local $foo = Run("C:\Program Files (x86)\Cisco Systems\VPN Client\vpnclient.exe connect hska", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
  4. Local $line
  5. While 1
  6.     $line = StdoutRead($foo)
  7.     If @error Then ExitLoop
  8.  
  9.     If $line <> "" Then
  10.         ConsoleWrite("STDOUT gelesen:" & $line & @CRLF)
  11.     EndIf
  12. WEnd
  13.  
  14. While 1
  15.     $line = StderrRead($foo)
  16.     If @error Then ExitLoop
  17.     If $line <> "" Then
  18.     ConsoleWrite("STDERR gelesen:" & $line & @CRLF)
  19.     EndIf
  20. WEnd
Add Comment
Please, Sign In to add comment