易丰科技

标题: c# 拨接 vpn [打印本页]

作者: Calvin    时间: 2011-10-3 19:57
标题: c# 拨接 vpn
  1. connect from VPN

  2. System.Diagnostics.Process.Start("rasdial.exe", "My_VPN My_Username My_Password");


  3. To disconnect from the VPN, simply use this line:

  4. System.Diagnostics.Process.Start("rasdial.exe", "My_VPN /d");
复制代码






欢迎光临 易丰科技 (http://forum.yftek.com/) Powered by Discuz! X3