Jump to content
Sign in to follow this  
insanepyrokid

Connection Speed?

Recommended Posts

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...