This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
您可以尝试直接从 Java 使用 RAS API。
如果您想从纯 CMD 创建 VPN 连接,我会尝试将连接信息附加到用户配置文件中的 rasphone.pbk 文件(
%APPDATA%\Microsoft\Network\Connections\Pbk\rasphone.pbk
)。有关更多想法,请参阅如何以编程方式创建 Windows VPN 连接?
You can try to use RAS API directly from Java.
If you want to create VPN connection from pure CMD, I'd try to append connection info to rasphone.pbk file in user's profile (
%APPDATA%\Microsoft\Network\Connections\Pbk\rasphone.pbk
).For more ideas see How can I programmatically create a Windows VPN connection?
Cisco VPN 可以使用命令行进行连接。您可以创建自己的脚本文件,使用 CLI 命令来执行例行任务,例如连接到公司服务器、运行报告,然后断开与服务器的连接。
要显示所有 VPN Client 命令的列表,请转至包含 VPN Client 软件的目录,然后在命令行提示符下输入 vpnclient 命令:
http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_client46/administration/guide/vcAch5.html
Cisco VPN can connect using the Command line.You can create your own script files that use the CLI commands to perform routine tasks, such as connect to a corporate server, run reports, and then disconnect from the server.
To display a list of all VPN Client commands, go to the directory that contains the VPN Client software, and enter the vpnclient command at the command-line prompt:
http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_client46/administration/guide/vcAch5.html