+ Post New Thread
Results 1 to 4 of 4
How do you do....it? Thread, detect vpn connection in Technical; sorry for the misleading title. Not sure what to call it. ok, I want to run a batch file that ...
  1. #1

    Join Date
    May 2008
    Location
    Kent
    Posts
    94
    Thank Post
    57
    Thanked 10 Times in 10 Posts
    Rep Power
    13

    detect vpn connection

    sorry for the misleading title. Not sure what to call it.
    ok, I want to run a batch file that opens a VPN login web page. Then the user enters user name and pasword on the web page. The page then shows successful login. The question is, how can I detect a successful connection has been made and then continue with the batch file and map some drives?
    many thanks

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,392
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427
    You could make a VBS file to ping a remote server when the server replies then map the network drives.

  3. Thanks to FN-GM from:

    firefighting (14th July 2009)

  4. #3

    Join Date
    May 2008
    Location
    Kent
    Posts
    94
    Thank Post
    57
    Thanked 10 Times in 10 Posts
    Rep Power
    13
    Quote Originally Posted by FN-GM View Post
    You could make a VBS file to ping a remote server when the server replies then map the network drives.
    wow! thanks for replying so quickly. Worth a go.

  5. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    8,941
    Thank Post
    232
    Thanked 1,510 Times in 1,206 Posts
    Rep Power
    328
    You could just permanently map network drives (on a laptop for example), and they'd only be accessible if VPN connected successfully.
    Not quite sure how you'd do it the other way around (with the above method). Keep periodically pinging the DNS server and if it fails delete the drives?

  6. Thanks to Michael from:

    firefighting (15th July 2009)

SHARE:
+ Post New Thread

Similar Threads

  1. Script to create a VPN connection
    By Norphy in forum Scripts
    Replies: 5
    Last Post: 20th April 2010, 11:37 AM
  2. Unable to detect new HDD
    By stu in forum Mac
    Replies: 7
    Last Post: 12th December 2008, 03:42 PM
  3. VPN connection with internet connection option
    By FN-GM in forum Wireless Networks
    Replies: 6
    Last Post: 29th December 2007, 07:19 PM
  4. VPN Connection in Vista Business
    By adamf in forum Windows Vista
    Replies: 6
    Last Post: 14th August 2007, 07:50 PM
  5. Connection Manager Administration Kit (VPN)
    By RobFuller in forum Windows
    Replies: 0
    Last Post: 15th March 2007, 10:08 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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