C# - Close OpenVPN Cleanly

前端 未结 2 1418
慢半拍i
慢半拍i 2021-01-07 14:21

We have written an application that sits in the tray controlling OpenVPN as an extension to a bigger application.

If you run openvpn.exe on command line, you can pre

2条回答
  •  轮回少年
    2021-01-07 15:04

    StandardInput.Write(ConsoleKey.F4);
    

    Obviously you have to get StandardIn for the process.

提交回复
热议问题