J
Joe
I am trying to retrieve the timedate stamp for a file
called file.007 which is stored in my documents the
following code successfully finds the file but not the
date stamp any one out their able to help.
Dim varItem As Variant
Dim Imod As Variant
Dim mLfiles As Variant
With Application.FileSearch
.NewSearch
.LookIn = "C:\Documents and Settings\Joe\My
Documents"
.FileName = "FILE.007"
.LastModified
.Execute
For Each varItem In .FoundFiles
Debug.Print varItem
Imod = Application.FileSearch.LastModified
Debug.Print FileDateTime(Imod)
Next varItem
Regards
Joe
called file.007 which is stored in my documents the
following code successfully finds the file but not the
date stamp any one out their able to help.
Dim varItem As Variant
Dim Imod As Variant
Dim mLfiles As Variant
With Application.FileSearch
.NewSearch
.LookIn = "C:\Documents and Settings\Joe\My
Documents"
.FileName = "FILE.007"
.LastModified
.Execute
For Each varItem In .FoundFiles
Debug.Print varItem
Imod = Application.FileSearch.LastModified
Debug.Print FileDateTime(Imod)
Next varItem
Regards
Joe