Link to home
Start Free TrialLog in
Avatar of jonathanduane2010
jonathanduane2010

asked on

VPN reconnection option if not connected

Hi,

i have a very simple batch file to run on startup, is there anyway to run this if it drops or if a cable was unplugged?

Rasdial test test test$2010
ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That's what I had in mind, too, but it is "brute force", and I didn't like the idea.
Can we rely on that it is Vista, 2008 or Windows 7 we are talking about?
Thanks.  Like Qlemo said perhaps not the most elegant plan but it depends upon the cirumstances and what you need it to do.  May be better to sort out whatever timeout issue there is, or have a constant PING going every 60 seconds or similar to keep the connection active etc.   Another couple of answers in "Windows Batch Scripting" and thats a "Sage" for me so thanks for the points :-)

Steve
I have been working on an elegant solution using Task Scheduler and Event Triggers. That works starting with Vista.
An event-triggered script can be defined in Task Scheduler, and that  is only called when the event is triggered, of course, that is on disconnect. Still interested?
Well I'm interested :-)