Auto-launch .bat script upon OpenVPN connection in Windows

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
ttblum
OpenVpn Newbie
Posts: 2
Joined: Tue Mar 20, 2012 4:30 pm

Auto-launch .bat script upon OpenVPN connection in Windows

Post by ttblum » Wed May 23, 2012 5:21 pm

Hello,

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

Thanks,

Todd

User avatar
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

Post by janjust » Fri May 25, 2012 7:56 am

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.

Post Reply