Returns the size (in bytes) of a file located on the internet.
InetGetSize ( "URL" )
Parameters
URL | URL of the file to download. See remarks below. |
Return Value
Success: | Returns the size of the file in bytes. |
Failure: | Returns 0 and sets @error to 1. |
Remarks
Internet Explorer 3 or greater must be installed for this function to work. (For ftp:// URLs IE 5 is required!)
Related
InetGet
Example
$size = InetGetSize("http://www.autoitscript.com/autoit3/files/beta/update.dat")
MsgBox(0, "Size of remote file:", $size)