title: Globalprotect VPN batch file or C# code
body: <p>Hi I am trying to connect to a VPN network using GlobalProtect VPN client. I can do that using the UI but I would like this to be automated. In another project where I was using Sonicwall Netextender, I created a batch file which I was calling from my C# code so I would connect to a VPN by calling the batch file, do some operations and disconnect using another batch file. I am trying to find a similar way to achieve it using Globalprotect. The command line arguments which I was using with Netextender does not seem to work with the PanGPA.exe.  Any ideas how I could do that? I am not having any luck with the batch file so far.
  The netextender batch file is:</p>
  
  <pre><code>cd c:\Program Files (x86)\SonicWALL\SSL-VPN\NetExtender\
  NECLI connect -s 122.254.213.256 -d DNAME -u UNAME -p PASSWORD
  </code></pre>