botanic Posted December 1, 2008 Posted December 1, 2008 (edited) 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 December 1, 2008 by botanic
dillonlim Posted December 1, 2008 Posted December 1, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now