Re: size of file to download
I have moved your question to the XML, HTML, Javascript, Web and CGI forum.
Re: size of file to download
try this:
Code:
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fileObject = fso.GetFile(Server.MapPath("\fso\") & "\myfile.txt")
Response.Write fileObject.Size & " bytes"
PS: this probably should have been submitted in the Java or the XML, HTML, Javascript, Web and CGI section
Re: size of file to download
hello there...thanks for moving my post.. :blush:
and thanks ALL for your suggestion.
but im afraid am not familiar what language u were using.. :(
but really i do appreciate your time :)
btw i this is the code i was looking for:
Code:
File genFile = new File(filePath);
long genLength = genFile.length();
many thanks :wave:
Re: size of file to download
the language i was using was JSP