-TS- Posted December 11, 2003 Posted December 11, 2003 (edited) how would i go about checking my internet/network speed and how much is being used ThX *TS* Edited December 11, 2003 by -TS-
Helge Posted January 7, 2004 Posted January 7, 2004 Hello!There is a DOS-command that can show you some information aboutthe network, and if you dump that information to a text-file, then you could doa 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 thecorrect one, because of the increasing number of bytes that you are receiving.Well....good luck !
jpm Posted January 7, 2004 Posted January 7, 2004 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 problemRunWait (@comspec & " /cnet statistics workstation >> C:\Stats.txt", "", @SW_MINIMIZE)Good LuckJP
scriptkitty Posted January 7, 2004 Posted January 7, 2004 (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? 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 January 7, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now