代码如下:
user = "admin" '路由器帐号
pass = "admin" '路由器密码
With CreateObject("Msxml2.ServerXMLHTTP")
.open "GET", "http://192.168.1.1/userRpm/SysRebootRpm.htm?Reboot=重启路由器", False, user, pass
.send
End With
MsgBox "命令已发出,60秒内重启完毕。", 64, "重启路由器"
更多信息请查看IT技术专栏