代碼如下:
user = "admin" '路由器帳號(hào)
pass = "admin" '路由器密碼
With CreateObject("Msxml2.ServerXMLHTTP")
.open "GET", "http://192.168.1.1/userRpm/SysRebootRpm.htm?Reboot=重啟路由器", False, user, pass
.send
End With
MsgBox "命令已發(fā)出,60秒內(nèi)重啟完畢。", 64, "重啟路由器"
更多信息請(qǐng)查看IT技術(shù)專欄