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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing the Modified Date and Time of a File

Status
Not open for further replies.

Meander365

Programmer
May 17, 2001
14
GB
Hi !

Can anyone provide some code that prints the date and time of a file ? So rather having to manually change the date it was loaded on the server - the ASP could just do it automatically...

Thanks in advance.

:)

M
 
SET oFSO = CreateObject("Scripting.FileSystemObject")
SET oFile = oFSO.GetFile("D:\MyPath\Myfile.txt")

Response.Write "Created on: " & oFile.DateCreated
Response.Write "Last modified on: " & oFile.DateLastModified Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top