Results 1 to 3 of 3

Thread: batch for vpn auto reconnect (8.1 or 10 tp)

  1. #1
    Member
    Join Date
    Jul 2014
    Location
    Mars
    Posts
    164
    Thanks
    115
    Thanked 10 Times in 9 Posts

    batch for vpn auto reconnect (8.1 or 10 tp)

    pls suggest batch or script for auto reconnecting vpn when it`s dropped or option to stop all downloads when it`s dropped, or utility which shows current inet connection on desktop

  2. #2
      webmaster's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    70
    Thanks
    12
    Thanked 53 Times in 24 Posts
    Code:
    @echo off
    :loop
        echo testing IP address
        ping 123.456.78.90 >nul || (
           echo ping failure - disconnecting
           rasdial name_of_your_vpn_connect /disconnect
              timeout /t 10 /nobreak
           echo reconnecting
              rasdial name_of_your_vpn_connect
              timeout /t 10 /nobreak
       )
    timeout /t 30 /nobreak
    goto :loop

  3. #3
    Member
    Join Date
    Jul 2014
    Location
    Mars
    Posts
    164
    Thanks
    115
    Thanked 10 Times in 9 Posts
    thanx!

Similar Threads

  1. A reliable batch image conversion tool
    By m^2 in forum The Off-Topic Lounge
    Replies: 13
    Last Post: 6th August 2012, 15:16
  2. Auto-extractible compressed container
    By Cyan in forum Data Compression
    Replies: 3
    Last Post: 2nd July 2012, 10:56
  3. Replies: 4
    Last Post: 17th March 2008, 21:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •