By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,752 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

File properties

P: n/a
Lou
How do I get file version, bitmap,date modified, all the stuff about files.

Thanks
-Lou
Nov 20 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
Try the FileInfo class.

Shawn

"Lou" <lo********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How do I get file version, bitmap,date modified, all the stuff about files.

Thanks
-Lou

Nov 20 '05 #2

P: n/a
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" <lo********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How do I get file version, bitmap,date modified, all the stuff about files.
Thanks
-Lou

Nov 20 '05 #3

P: n/a
Lou
Thanks much..

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
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" <lo********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How do I get file version, bitmap,date modified, all the stuff about

files.

Thanks
-Lou


Nov 20 '05 #4

P: n/a
Lou
How do I get the bitmap associated with the file?
"William Ryan" <do********@comcast.nospam.net> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
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" <lo********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How do I get file version, bitmap,date modified, all the stuff about

files.

Thanks
-Lou


Nov 20 '05 #5

P: n/a
Lou
This class doesn't give me the file version???
"William Ryan" <do********@comcast.nospam.net> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
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" <lo********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
How do I get file version, bitmap,date modified, all the stuff about

files.

Thanks
-Lou


Nov 20 '05 #6

P: n/a
"Lou" <lo********@comcast.net> schrieb
This class doesn't give me the file version???


No, the file version is not part of the file system. Search for
FileVersionInfo.
--
Armin

Nov 20 '05 #7

P: n/a
Lou
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

"Armin Zingler" <az*******@freenet.de> wrote in message
news:eO*************@tk2msftngp13.phx.gbl...
"Lou" <lo********@comcast.net> schrieb
This class doesn't give me the file version???


No, the file version is not part of the file system. Search for
FileVersionInfo.
--
Armin

Nov 20 '05 #8

P: n/a
Hello,

"Lou" <lo********@comcast.net> schrieb:
There is nothing in the help files for FileVersionInfo relating to
this.


Are you sure you are using VB.NET?!

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #9

P: n/a
Hello,

"Lou" <lo********@comcast.net> schrieb:
How do I get the bitmap associated with the file?


Do you refer to the icon?

http://vbaccelerator.com/article.asp?id=4302

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.