Jump to content
Sign in to follow this  
botanic

Text output by command ran using runwait

Recommended Posts

botanic

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

Share this post


Link to post
Share on other sites
dillonlim

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

Share this post


Link to post
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
Sign in to follow this  

×