- ' 定义用户名和密码
- username = "用户名"
- password = "密码"
- ' 定义IP地址范围
- IP_First = 16
- IP_Last = 18
- IP_Range = "192.168.1."
- ' 遍历IP范围
- For i = IP_First To IP_Last
- currentIP = IP_Range & i
- Set ie = CreateObject("InternetExplorer.Application")
- ie.FullScreen = 0
- ie.Visible = True
- ie.Navigate "http://" & currentIP & "/dispatch.asp?user=" & username & "&pass=" & password & "&page=preview.asp"
- WScript.Echo currentIP & " 正在打开,请在打开下一个后再关闭前一个."
- ' 释放对象
- Set ie = Nothing
- Next
复制代码
|