c语言完成宽带拨号

学校的网络每次开机都需要手动登陆,于是用c写了一个自动登陆的小程序。。。

程序功能超级简单。。。只是懒得每次都登陆。。。

PS:代码功能具体没有测试。。。我自己用的是python

 1 #include <windows.h>
 2 #include <conio.h>
 3 
 4 int main()
 5 {
 6     int result;
 7     do{
 8         result=system("rasdial 宽带连接名字 用户名 密码") ;
 9     }while(result!=0);
10 
11     return 0;
12 }
View Code

具体实现方法也挺简单的,有兴趣自行百度。

原文地址:https://www.cnblogs.com/qipa/p/5496912.html