Jump to content

Text output by command ran using runwait


botanic
 Share

Recommended Posts

I am trying to run "rasdial.exe Work user pass" now it works fine 95% of the time sometimes i get an error (lag in my internet connection) is there any way i can get the last line output by the command?

@error returns 0

Edited by botanic
Link to comment
Share on other sites

I am trying to run "rasdial.exe Work user pass" now it works fine 95% of the time sometimes i get an error (lag in my internet connection) is there any way i can get the last line output by the command?

@error returns 0

How about something like this? You should be able to get the outout from your rasdial command and parse it.

Local $routput

$output = Run("rasdial command", "", @SW_MINIMIZE, $STDOUT_CHILD)

Do
   $routput &= StdoutRead($output)
Until @Error
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...