Sign in to follow this  
Followers 0
-TS-

internet/network speed

4 posts in this topic

#1 ·  Posted (edited)

how would i go about checking my internet/network speed

and how much is being used

ThX

*TS*

Edited by -TS-

Share this post


Link to post
Share on other sites



Hello!

There is a DOS-command that can show you some information about

the network, and if you dump that information to a text-file, then you could do

a FileReadLine and a StringRight to get the exact information you want....

I guess..

I dont know how to do the RunWait-command correct, but the script would be something like this :

RunWait ("net statistics workstation >> C:\Stats.txt", "", @SW_MINIMIZE)

FileOpen ( "C:\Stats.txt", 0)

$LINE = FileReadLine ("C:\Stats.txt", 7)

$INFO = StringRight($LINE, 7)

MsgBox(64, "Bytes received", $INFO)

This script will not work without modification and correction of (at least)

the RunWait-command, but I hope you can figure it out yourself,

or with help from anyone else here at the forums.

Note that the number on the StringRight-command might not always be the

correct one, because of the increasing number of bytes that you are receiving.

Well....good luck !

Share this post


Link to post
Share on other sites

RunWait ("net statistics workstation >> C:\Stats.txt", "", @SW_MINIMIZE)

FileOpen ( "C:\Stats.txt", 0)

$LINE = FileReadLine ("C:\Stats.txt", 7)

$INFO = StringRight($LINE, 7)

MsgBox(64, "Bytes received", $INFO)

That can solve the run wait problem

RunWait (@comspec & " /cnet statistics workstation >> C:\Stats.txt", "", @SW_MINIMIZE)

Good Luck

JP

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Replace this line

RunWait (@comspec & " /c net statistics workstation >> C:\Stats.txt", "", @SW_MINIMIZE)

Make sure to have the space before /c

For WinXP/NT/2000, this basically makes it into

RunWait ("cmd /c net statistics workstation >> C:\Stats.txt", "", @SW_MINIMIZE)

/cnet? :whistle:

Edit, or use the actual program name and path. But this won't actually make the file, as the secondary command interpreter is the part that sends the output to screen or file. But I thought it might be a good learning tool.

RunWait ("net.exe statistics workstation >> C:\Stats.txt", @SystemDir, @SW_MINIMIZE)
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0