|
-
Oct 1st, 2000, 07:16 AM
#1
Thread Starter
Ex-Super Mod'rater
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 :
Code:
Filesystem.Filelen(Path As String) As Long
I think it only works on local files though.
Can anyone help ?
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Oct 1st, 2000, 07:34 AM
#2
_______
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Oct 1st, 2000, 07:39 AM
#3
Thread Starter
Ex-Super Mod'rater
sorry to say this but....
Sorry to say this but that doesn't help much cos no-one gives the answer on that form.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Oct 1st, 2000, 07:41 AM
#4
_______
<?>
If you are using Microsoft Interntet Control
Text1 = Inet1.GetHeader("Content-length")
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Oct 1st, 2000, 07:44 AM
#5
Thread Starter
Ex-Super Mod'rater
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.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Oct 1st, 2000, 08:31 AM
#6
_______
<?>
Sorry! 
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.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Oct 1st, 2000, 08:49 AM
#7
Thread Starter
Ex-Super Mod'rater
Its K
But is there anyother way ??
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Oct 1st, 2000, 10:22 AM
#8
_______
<?>
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
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Oct 1st, 2000, 02:40 PM
#9
Thread Starter
Ex-Super Mod'rater
I can't say how greatful i am THANX!!!!
I'll try it.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|