473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

File properties

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

Thanks
-Lou
Nov 20 '05 #1
9 19435
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
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
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
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
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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Paul | last post by:
Hello, I've been reading up on security in Java Applets and whilst I understand the concept, I can't successfully get my applet to read a file on my local machine. I discovered from...
3
by: Lauren Quantrell | last post by:
I'd like to use my Access 2K application to write some text in the file properties of a Windows file. The properties I'm talking about are the properties you see whn you right click on a Windows...
2
by: ironwall22z | last post by:
My goal is to write a program in C# that will take the Artist and Title of an MP3 file and change the name of the file to a concatenated combination of the two. In order to do this, I am trying to...
2
by: ywchan | last post by:
I want to access and modify the following file properties 1. when you open an application e.g. word / acrobat reader, those information in file -> properties. 2. when you right click the file,...
5
by: IcingDeath via DotNetMonster.com | last post by:
I am building this SQL Server database app in which i can store files. In order to display files I want to have the app show the associated icon for the extension of the file that is in the...
5
by: mike | last post by:
Hi, I have been playing with VB.NET/C# for getting some general properties of a fileinfo object. However, FileInfo object does not seem to expose some of the basic properties like TYPE that used...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
2
by: =?Utf-8?B?QXJ0?= | last post by:
I need to go through a folder and all of its subfolders and collect the Title, Comments, Keywords and a few other items. These are items that you see when you select a file in the Windows explorer...
8
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
0
by: ndedhia1 | last post by:
I am having trouble loading a property file and keep getting this error when running my shell script that loads and runs my jar files, etc: no property file loaded, using defaults......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.