Create Date and Other Information for a File – VB.NET

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!

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.