Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 42,191 of 42,547    |
|    Mr. Man-wai Chang to Andy Burnelli    |
|    Re: How can we programmatically distingu    |
|    01 Apr 23 00:36:31    |
      XPost: alt.comp.os.windows-10, alt.comp.os.windows-11       From: toylet.toylet@gmail.com              On 30/3/2023 11:25 pm, Andy Burnelli wrote:       >       > In summary, when you have a batch file that connects to a VPN server       > (see above batch file), there's _nothing_ that I know of that you       > can do after the connection in the command window that pops up.       >       > It's not hard to manually determine success in a _different_       > window because a ping or curl icanhazip needs to simply report       > back a different IP address than what you happen to know is yours.       >       > But where do you put the test for a successful VPN connection       > if you want it to happen as part of the original batch command?              I have never used VPN myself, so my suggestion could be wrong:              tracert might help?? So just settle with a simple ping test?       Windows has connectivity detection, not sure how it works.              Google keywords:              how to detect vpn connection - Google Search       https://www.google.com/search?q=how+to+detect+vpn+connection              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca