回复 3# 437153
1、- strComputer = "."
- Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
- Set Items = objWMIService.ExecQuery("Select * from Win32_PerfRawData_Tcpip_NetworkInterface")
- max = 0
- For Each Item In Items
- If CLng(Item.BytesReceivedPerSec) >= max Then
- max = CLng(Item.BytesReceivedPerSec)
- End If
- Next
- Msgbox max
复制代码 2、s不是变量?要先补下基础知识呀 |