Sign in to follow this  
Followers 0
insanepyrokid

Connection Speed?

6 posts in this topic

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



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")

Share this post


Link to post
Share on other sites

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

Wow thats a pretty cool code i liked that 1 :whistle:


[font="Courier"]Dont do things bass ackwards?[/font]

Share this post


Link to post
Share on other sites

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?

:whistle:

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