[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[网络连接] win7 64系统。pppoe宽带连接。设置:自动保存用户/密码,并且自动选中?

本帖最后由 ygqiang 于 2016-1-21 15:10 编辑

win7 64系统。pppoe宽带连接。设置:自动保存用户/密码,并且自动选中?
自动将用户名/密码保存,自动选中“为下面用户保存用户名和密码”“只有我”。
bat或vbs代码,运行1次,就能实现。不需要人工/手动输入。

宽带pppoe-创建-桌面快捷方式.vbs
  1. Set WshShell = CreateObject("WScript.Shell")
  2. strCommandLine = "rasphone -a ""宽带连接"""
  3. WshShell.Run(strCommandLine)
  4. WScript.Sleep 1000
  5. WshShell.SendKeys "R"
  6. WScript.Sleep 30
  7. WshShell.SendKeys "{ENTER}"
  8. WScript.Sleep 30
  9. WshShell.SendKeys "{ENTER}"
  10. Set WshShell = Nothing
  11. ' 创建宽带连接桌面快捷方式
  12. Set WshShell = Wscript.CreateObject("Wscript.Shell")
  13. LnkPth = WshShell.SpecialFolders("Desktop")
  14. Set Link = WshShell.CreateShortcut(LnkPth & "\\宽带连接.lnk")
  15. Link.TargetPath = "rasphone.exe"
  16. Link.Arguments = "-d 宽带连接"
  17. Link.IconLocation = "SHELL32.dll,17"
  18. Link.Save
复制代码

TOP

这几个截图,都是手工输入的。。

TOP

买个路由器吧,几十块钱而已。
Talk is cheap. Show me the code.
没事不要瞎扯淡,有能耐就把代码贴出来给我看。

TOP

回复 4# gawk


    多谢。。。路由器,能设置:断线后,间隔几秒自动拨号吗?

TOP

回复 4# gawk


    暂时不想用路由器解决。谢谢。。

TOP

回复 5# ygqiang


可以的,网上很多人问也有很多回答,例如:
http://zhidao.baidu.com/link?url ... k6mfB75SXX9RWft3v9_

不想用路由器就再等等吧。
Talk is cheap. Show me the code.
没事不要瞎扯淡,有能耐就把代码贴出来给我看。

TOP

返回列表