Tech Support > Microsoft Windows > net stats workstation command
net stats workstation command
Posted by Berze P. on November 23rd, 2007


I have writen a small application for a cybercafe to calculate the time spent
on the PC by clients. Simply put, they dbl click a Login icon on desktop, and
the time is recorded and then when they logout (another icon) the end time is
recorded and the amount to pay is calculated according to time x rate/time.
This is all ok, BUT now the ISP charges me according to downloaded bytes and
not time -- So, I need to know the bytes transferred (upload + download) by
the PC to the internet so that can be charged accordingly. Eg. Network
Neighborhood Properties tells us the bytes transferred, but I want to capture
those numbers programatically. Any help appreciated.
PS I got hold of the net stats workstation command but it seems to update
the figures after some delay. ie I run the cammand and I get the figures. I
start browsing for a few minutes and reissue the command, I will get the old
figures only. After a delay of 8 to 10 minutes if I check again I get the
updated figures.
I


Similar Posts