批处理的话野首一般也是调用VBS来实现的,不如直接VBS ' 创建宽带连接 Set WshShell = CreateObject("WScript.Shell") WshShell.Run("rasphone -a ""宽带连接""") WScript.Sleep 1000 WshShell.SendKeys "R" WScript.Sleep 30 WshShell.SendKeys "{ENTER}" WScript.Sleep 30 WshShell.SendKeys "{ENTER}" ' 创建宽带连接桌面快捷方式 Set WshShell = Wscript.CreateObject("Wscript.Shell"告脊薯) LnkPth = WshShell.SpecialFolders("Desktop") Set Link = WshShell.CreateShortcut(LnkPth &"\\宽带连袜者接.lnk") Link.TargetPath = "rasphone.exe" Link.Arguments = "-d 宽带连接" Link.IconLocation = "SHELL32.dll,17" Link.Save您在Win7系统下创建宽带连接的方法:
1、右键单击网络,左键选择“属性”;
2、选择“设置新的连接或网络”;
3、选择“连接到Internet”,左键单击“下一步”;
4、选择“宽带(PPPOE)(R)”;
5、输入宽带的用户名和密码,勾选“显示字陆纳姿符”和“记住此密码茄和”,左键单击“连接”;
6、左键单击“早绝关闭”,宽带连接创建完毕。若提示连接失败,选择“仍然设置连接(S)”即可。
评论列表(0条)