Web Analytics Made Easy -
StatCounter Help with a batch file... - CodingForum

Announcement

Collapse
No announcement yet.

Help with a batch file...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with a batch file...

    Hi all...
    I need to make a stupid batch file ...
    the batch file should check if a connection has established and disconnect it, and dial another one...

    EXAMPLES:
    I have 2 VPN's: VPN-1, VPN-2.
    If the VPN-1 is connected than the batch file will disconnect and dial VPN-2...

    Can you help me or point me for a tool on the net...

    Thanks...
    Firebug for Internet Explorer

  • #2
    a vpn connection in windows shows up as an interface under ipconfig. you can run something like: *not tested
    Code:
    ipconfig | find /i "vpn 1"
    if ERRORLEVEL==0 do something
    Otherwise it would help to know what vpn software you are using.
    anthony

    Comment

    Working...
    X