insanepyrokid Posted March 14, 2004 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...
Administrators Jon Posted March 14, 2004 Administrators 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")
insanepyrokid Posted March 14, 2004 Author 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.
EniamaJ Posted March 15, 2004 Posted March 15, 2004 Wow thats a pretty cool code i liked that 1 [font="Courier"]Dont do things bass ackwards?[/font]
jpm Posted March 15, 2004 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?
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