File properties

  • Thread starter Thread starter Lou
  • Start date Start date
Try the FileInfo class.

Shawn



How do I get file version, bitmap,date modified, all the stuff about files.

Thanks
-Lou
 
Dim f As New FileInfo("C:\Contact.bmp")

Debug.WriteLine(f.LastWriteTime.ToString)

Debug.WriteLine(f.LastAccessTime.ToString)

Debug.WriteLine(f.CreationTime.ToString)

Debug.WriteLine(f.Name)

Debug.WriteLine(f.Length)

Debug.WriteLine(f.Attributes.ReadOnly.ToString)

'etc
 
Thanks much..

William Ryan said:
Dim f As New FileInfo("C:\Contact.bmp")

Debug.WriteLine(f.LastWriteTime.ToString)

Debug.WriteLine(f.LastAccessTime.ToString)

Debug.WriteLine(f.CreationTime.ToString)

Debug.WriteLine(f.Name)

Debug.WriteLine(f.Length)

Debug.WriteLine(f.Attributes.ReadOnly.ToString)

'etc
 
This class doesn't give me the file version???


William Ryan said:
Dim f As New FileInfo("C:\Contact.bmp")

Debug.WriteLine(f.LastWriteTime.ToString)

Debug.WriteLine(f.LastAccessTime.ToString)

Debug.WriteLine(f.CreationTime.ToString)

Debug.WriteLine(f.Name)

Debug.WriteLine(f.Length)

Debug.WriteLine(f.Attributes.ReadOnly.ToString)

'etc
 
There is nothing in the help files for FileVersionInfo relating to this.

There must be a simple way to get the version of a file?
-Lou
 
Back
Top