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

File date??? 1

Status
Not open for further replies.

Denaeghel

Programmer
Apr 23, 2001
61
BE
I need the date (ex. office-files, text-files, ...) when the file was made. How can I get that date??
 
Use the FileSystemObject
Code:
Dim objFs as scripting.FileSystemObject
Dim objFolder as scripting.Folder
Dim objFiles as scripting.Files
Set objfs = CreateObject("Scripting.Dictionary")
Set objFolder = objfs.GetFolder(strFoldername)
Set objFiles = objFolder.Files
For each objFile in objFiles
    ... = objfile.DateCreated
    ... = objFile.DateModified
    ... = objFile.DateLastAccessed
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top