I want to get BytesReceivedPersec and BytesSentPersec from command.
I used this commnad.
wmic path Win32_PerfRawData_Tcpip_NetworkInterface get Name,BytesReceivedPersec,BytesSentPersec
And I got this response.
BytesReceivedPersec BytesSentPersec Name 0 0 Intel[R] Ethernet Controller  I225-V 1397496619 51305183 Intel[R] Wi-Fi 6 AX201 160MHz
I saw this result will increase over time, So i try to keep the last value, and using (current – last)/1024 to Kbps.
result like this
in: "4.84473" , out: "1.67578"
But in the Task Manager like
Why the result has very big different?
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.