How can I get the size of a file in MB if the file is located on a server?
If the file is on a computer I would do this:
But what about if the file is located on:Code:Dim file As New IO.FileInfo("c:\myfile.rar")) label1.text = file.Length ' or: label1.text = (file.Length \ 1024) \ 1024 if i want the size in MB (i guess)
http://www.mywebsite.com/myfile.rar
Thank you in advance,
Andrea.




Reply With Quote
