Hello,
Does anyone know how I might auto-launch a .bat script upon establishing OpenVPN connection in Windows?
Thanks,
Todd
Auto-launch .bat script upon OpenVPN connection in Windows
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue Mar 20, 2012 4:30 pm
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Auto-launch .bat script upon OpenVPN connection in Windo
if you use the GUI included in the community version of openvpn 2.1/2.2 then you can place a script in the same directory as the .ovpn file. If your client config is 'client1.ovpn' then the script would be 'client1_up.bat' ; this script is called after the GUI detects that an OpenVPN connection has been established.