home bbs files messages ]

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 41,924 of 42,547   
   FromTheRafters to John used his or her keyboard to   
   Re: Win10 network on/off toggle with adm   
   10 Feb 21 11:36:47   
   
   From: erratic@nomail.afraid.org   
      
   Kerr-Mudd,John used his or her keyboard to write :   
      
   > So you didn't really need a batch solution at all!   
   >   
   > You could create a shortcut to "Local Area Connection" and hit the   
   > disable button! (OK, *2* double clicks"!)   
   > I expect a VBS or Autokey Scripter could do it in 1.   
      
   Thank you for that extra idea of a shortcut to Local Area Connection.   
   Does it also protect when the VPN suddenly unexpectedly drops?   
      
   I was looking for a single-click pretty toggle icon in the taskbar.   
   I have it now (& it came with an unexpected bonus of protecting VPN!)   
      
   Off VPN   
    If the gateway is on, clicking once turns it off (Win10 globe icon)   
    If the gateway is off, clicking once turns it on (Win10 monitor icon)   
   On VPN   
    If VPN is on, clicking once protects if the VPN drops (Win10 monitor icon)   
    If the VPN suddenly drops, instantly the network fails (Win10 globe icon)   
      
   I didn't aim to protect VPN.   
   That just came as an added bonus when I tested it under various conditions.   
      
   The overall solution was pretty simple once I gave up on finding a unicorn   
   (1) Batch script that tests the gateway & toggles it based on that test   
   (2) Scheduled task running that batch script with elevated permission   
   (3) A pretty green/red on/off shortcut to that scheduled task in the taskbar   
      
   If there is a simpler solution out there that is a single click   
   I'd be happy to test it out.   
      
   I tried this for example, but it's more clicks for the same result   
    https://www.liquidvpn.com/vpn-kill-switches/   
      
   And I tried this software suggested by wasbit today but it didn't work   
    http://crystalrich.com/internetoff/   
      
   --- 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