I want to thank you all I will try all and both solutions exists and fpr the comment I am trying to make an openvpn cliemt and pass the username and password to the openvpn.exe here is the code I know there is a directive from openvpn.exe but the forum is not answered yet, if you know which directive is I would appreciate it
If ComboBox1.Text = "" Then
MsgBox("Select server file from combobox", MsgBoxStyle.OkOnly, "error")
Else
openvpnProcess.StartInfo.CreateNoWindow = True
If CheckBox1.Checked = True Then
openvpnProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
Else
openvpnProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
End If
openvpnProcess.EnableRaisingEvents = True
openvpnProcess.StartInfo.Arguments = "--config " & Me.ComboBox1.SelectedItem & ""
openvpnProcess.StartInfo.FileName = "C:\Program Files\OpenVPN\bin\openvpn.exe"
openvpnProcess.StartInfo.WorkingDirectory = "C:\Program Files\OpenVPN\config\"
openvpnProcess.Start()
please any help and or tutorial