insanepyrokid Posted March 14, 2004 Share Posted March 14, 2004 in addition to my question about how to find out it the computer is connected to the internet, is there a way to find out approximately how fast the connecting is? im writing a script to update files from a main server and/or website and obviously i dont want to dl a 50 mb file on a comp with 56k....if anyone knows how to do this then post some sample scripts please... Link to comment Share on other sites More sharing options...
Administrators Jon Posted March 14, 2004 Administrators Share Posted March 14, 2004 Only way to to time the downloading of a known file: $timer = TimerStart() URLDownloadToFile("http://www.microsoft.com/default.asp", EnvGet("Temp") & "\speed.tmp") $timer = TimerStop($timer) $size = FileGetSize(EnvGet("Temp") & "\speed.tmp") $speed = Int(($size / 1024) / ($timer / 1000)) msgbox(0, "Approximate Internet Speed", $speed & " KB/s") Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Somerset Posted March 14, 2004 Share Posted March 14, 2004 http://bandwidthplace.com/speedtest/ Link to comment Share on other sites More sharing options...
insanepyrokid Posted March 14, 2004 Author Share Posted March 14, 2004 thanks alot for that code, it works great. i'll just have it do speed tests on a few different size files until i get accurate speeds. Link to comment Share on other sites More sharing options...
EniamaJ Posted March 15, 2004 Share Posted March 15, 2004 Wow thats a pretty cool code i liked that 1 [font="Courier"]Dont do things bass ackwards?[/font] Link to comment Share on other sites More sharing options...
jpm Posted March 15, 2004 Share Posted March 15, 2004 Only way to to time the downloading of a known file: $timer = TimerStart() URLDownloadToFile("http://www.microsoft.com/default.asp", EnvGet("Temp") & "\speed.tmp") $timer = TimerStop($timer) $size = FileGetSize(EnvGet("Temp") & "\speed.tmp") $speed = Int(($size / 1024) / ($timer / 1000)) msgbox(0, "Approximate Internet Speed", $speed & " KB/s")Jon, Do you know why this script have not the cache proxy problem as opposed to the download I am doing from www.hiddensoft.com? Link to comment Share on other sites More sharing options...
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