Tutorial-Web Home > The FileSystem Object > The File Object

Object Menu

Drive
File
Attributes
DateCreated
DateLastAccessed
DateLastModified
Drive
Name
ParentFolder
Path
ShortName
ShortPath
Size
Type
Copy
Delete
Move
OpenAsTextStream
Folder
FileSystem
TextStream

 


 
DateLastAccessed
TypeRead-Only Property
Return Value TypeDate/Time
Usageobject.DateLastAccessed(FileName)
DescriptionDetermines the date the file was last accessed by a process.
ExampleCode:
filename="c:\test\test.html"
Set fso = CreateObject("Scripting.FileSystemObject")
set mainfile=fso.GetFile(filename)
response.write mainfile.DateAccessed

Result:
2/5/02 13:05:34

The Bookworm
Search the Tutorial-Web library for books on any topic!
Sponsors

Search Now:
In Association with Amazon.com