标题: [网络连接] win7 64系统。pppoe宽带连接。设置:自动保存用户/密码,并且自动选中? [打印本页]
作者: ygqiang 时间: 2016-1-20 21:26 标题: win7 64系统。pppoe宽带连接。设置:自动保存用户/密码,并且自动选中?
本帖最后由 ygqiang 于 2016-1-21 15:10 编辑
win7 64系统。pppoe宽带连接。设置:自动保存用户/密码,并且自动选中?
自动将用户名/密码保存,自动选中“为下面用户保存用户名和密码”“只有我”。
bat或vbs代码,运行1次,就能实现。不需要人工/手动输入。
作者: ygqiang 时间: 2016-1-21 15:13
宽带pppoe-创建-桌面快捷方式.vbs- Set WshShell = CreateObject("WScript.Shell")
- strCommandLine = "rasphone -a ""宽带连接"""
- WshShell.Run(strCommandLine)
- WScript.Sleep 1000
- WshShell.SendKeys "R"
- WScript.Sleep 30
- WshShell.SendKeys "{ENTER}"
- WScript.Sleep 30
- WshShell.SendKeys "{ENTER}"
- Set WshShell = Nothing
-
- ' 创建宽带连接桌面快捷方式
- 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
复制代码
作者: ygqiang 时间: 2016-1-21 15:15
这几个截图,都是手工输入的。。
作者: gawk 时间: 2016-1-21 20:46
买个路由器吧,几十块钱而已。
作者: ygqiang 时间: 2016-1-21 21:02
回复 4# gawk
多谢。。。路由器,能设置:断线后,间隔几秒自动拨号吗?
作者: ygqiang 时间: 2016-1-22 08:48
回复 4# gawk
暂时不想用路由器解决。谢谢。。
作者: gawk 时间: 2016-1-25 13:14
回复 5# ygqiang
可以的,网上很多人问也有很多回答,例如:
http://zhidao.baidu.com/link?url ... k6mfB75SXX9RWft3v9_
不想用路由器就再等等吧。
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |