Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Constants.au3>
- $foo = Run("C:\Program Files (x86)\Cisco Systems\VPN Client\vpnclient.exe connect profil", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
- While 1
- $line = StdoutRead($foo)
- If @error Then ExitLoop
- If $line <> "" Then
- If StringInStr($line,"Your VPN connection is secure.") Then
- MsgBox(0,"","VPN-Verbindung aufgebaut")
- EndIf
- ConsoleWrite("STDOUT gelesen:" & $line & @CRLF)
- EndIf
- WEnd
Add Comment
Please, Sign In to add comment