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

Date modified of file

Status
Not open for further replies.

slybitz

Technical User
Mar 25, 2005
113
US
I'm trying to get the date a file was modified. How can I do this? I know how to get the date last accessed and the creation date (below code) but what about the date modified? Thanks for your help!

Code:
Dim f As New FileInfo("file.exe")
Dim dte as string
dte = f.CreationTime.ToString
 
I believe I figured it out... sorry. LastWriteTime does the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top