How do I get file version, bitmap,date modified, all the stuff about files.
Thanks
-Lou 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
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
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
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
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
"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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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......
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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,...
|
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...
| |