Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Filename, Date modified and Byte size

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
Weekly I upload a fiel to our WEB site that people can download.
Is teh ea way to have the download poage show the Date of teh file and the byte size. I would like this to be automatic.
Not have to key it in everytime.
The filename stays the same but the date and size changes.

TIA DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
If you use FileSystemObject to look at the file you can use the following File Object properties:

File.DateCreated
File.DateLastAccessed
File.DateLastModified
File.Name
File.Size
File.TypeOf

As well as a couple of others.

set FSO = Server.CreateObject("Scripting.FileSystemObject")
set objFile = FSO.GetFile(Server.MapPath("filename.ext"))
Response.Write &quot;File Name: &quot; & objFile.Name & &quot;<BR>&quot;
...

set objFile = nothing
set FSO = nothing

:) Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top