Does anyone know how to get the size of a file on a server using WinInet api? I think it is something like FtpGetFileSize but I don't know the syntax.
Printable View
Does anyone know how to get the size of a file on a server using WinInet api? I think it is something like FtpGetFileSize but I don't know the syntax.
Well to find out the size of something you would use FileLen. So i would think that something like:
I'm not sure that will work but i think you get the idea.Code:Private Sub Form_Load()
Text1.Text = FileLen(Inet1.OpenURL("http://www.rocsoft.org/lockdown/Lockdown2000.exe", icString))
End Sub
Hope that helps,
D!m