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 managing in VB

Status
Not open for further replies.

davideart

Programmer
Apr 4, 2001
55
IT
Hy, I'm developing a VB procedure to manage files. I use the filesystemobject with the statement
Set fso = CreateObject("Scripting.FileSystemObject")
I would need to be able to find what file is the latest created in a certain folder (of course without scanning the whole folder and comparing the DateCreated property of each file).

Thank you for your help
 
The procedure I submitted in thread222-66274 can easily be modified to check the Creation date of a file.

The procedure outlines how to scan folders for files. Once the files are found you can check ther Creation date through the DateCreated property of the file. BTW, You also have a DateLastAccessed and a DateLastModified Property. _________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
 
"(of course without scanning the whole folder and comparing the DateCreated property of each file)."

You just take the WITHOUT and change it to WITH and you have your answer. If you want them sorted, you'll have to do that too.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top