File properties

  • Thread starter Thread starter Lou
  • Start date Start date
L

Lou

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

Thanks
-Lou
 
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
 
Lou said:
This class doesn't give me the file version???

No, the file version is not part of the file system. Search for
FileVersionInfo.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top