insanepyrokid 0 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... Share this post Link to post Share on other sites
Jon 1,009 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/ Share this post Link to post Share on other sites
Somerset 3,040 Posted March 14, 2004 http://bandwidthplace.com/speedtest/ Spoiler Share this post Link to post Share on other sites
insanepyrokid 0 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. Share this post Link to post Share on other sites
EniamaJ 0 Posted March 15, 2004 Wow thats a pretty cool code i liked that 1 [font="Courier"]Dont do things bass ackwards?[/font] Share this post Link to post Share on other sites
jpm 91 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? Share this post Link to post Share on other sites