Does anyone know how to get the size of a file , but the file is on the internet i.e. On a website.
I tried this :
I think it only works on local files though.Code:Filesystem.Filelen(Path As String) As Long
Can anyone help ?
Printable View
Does anyone know how to get the size of a file , but the file is on the internet i.e. On a website.
I tried this :
I think it only works on local files though.Code:Filesystem.Filelen(Path As String) As Long
Can anyone help ?
Sorry to say this but that doesn't help much cos no-one gives the answer on that form.
If you are using Microsoft Interntet Control
Text1 = Inet1.GetHeader("Content-length")
I am not using it as I said in THAT form aswell. Does this mean that there is no other way to get the size of a file on a website.
If it is could someone e-mail me the control. Please.
:eek: Sorry! :eek:
Guess I'll put this away, I've got so much sleep in
my eyes I didn't notice that or even that it was your
original post.
Its K
But is there anyother way ??
Found this for you but I haven't tested it so it's all
yours to play with.
Code:In order to get the size of a file from an FTP server,
you must send the following FTP command:
QUOTE SIZE filename
The server must support the remote FTP command "SIZE" in
order for this to work...
When you send that command, the FTP server will respond
with a 213 message, like this:
213 575372
The number after the 213 is the size of the file...
In this case, the file's size is 575372.
You should be able to see all of the remote
FTP command that the FTP Server supports by sending the command:
QUOTE HELP
you will get a 214 message that displays all of the supported commands... Like this:
214- The following commands are supported:
214- USER PASS QUIT RETR SIZE LIST
214- DIR LIST MKD RMD RNTO DELE
214- STORE PORT TYPE ....(other commands)
214 List Ends
I can't say how greatful i am THANX!!!!
I'll try it.