Page 1 of 1

Auto-launch .bat script upon OpenVPN connection in Windows

Posted: Wed May 23, 2012 5:21 pm
by ttblum
Hello,

Does anyone know how I might auto-launch a .bat script upon establishing OpenVPN connection in Windows?

Thanks,

Todd

Re: Auto-launch .bat script upon OpenVPN connection in Windo

Posted: Fri May 25, 2012 7:56 am
by janjust
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.