Updated to VB 2010
Download FileInformation VB.Net 2010 code here (24 kb)

Description

If you are looking to get the create date for a file, you can use the code below:

Dim fileData As FileInfo = My.Computer.FileSystem.GetFileInfo(strFilePath) Debug.Print(fileData.CreationTime.ToString)

I have also created a complete application, which exposes all the file information available in the FileInfo object.

Download FileInformation VB.Net 2005 code here (87 kb)

FileInformation Application

FileInformation Application

Enjoy!

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Live