473,395 Members | 1,670 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,395 software developers and data experts.

Reading File Property?

Can any tell me how to read a File Property like the Title, Subject, Author..
I have tried using a file call "Interop.DSOleFile.dll", it works...but It is not Strong Named...

I want something strong named that can read the File Property..
Thank You..
Jul 21 '05 #1
4 1484

You can use System.IO.File class for this

With Regards

Deepa
[I code, therefore I am

----- KriZ wrote: ----

Can any tell me how to read a File Property like the Title, Subject, Author..
I have tried using a file call "Interop.DSOleFile.dll", it works...but It is not Strong Named...

I want something strong named that can read the File Property..
Thank You..
Jul 21 '05 #2
System.IO.File can only give basic properties like creation date, file size, Hidden oo not...
What I want is the properties like the File Title, subject, Category...etc

Is it possible to do so using .Net Framework?
Jul 21 '05 #3
Properties like Subject, category .... are specific to file formats. What
kind of file are you working with?
--
With Regards,
Deepak
[I code, therefore I am]
http://deepakictim.blogspot.com
"KriZ" <an*******@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
System.IO.File can only give basic properties like creation date, file size, Hidden oo not.... What I want is the properties like the File Title, subject, Category...etc.
Is it possible to do so using .Net Framework?

Jul 21 '05 #4
I find every file have this kind of property
For all kind of file, I right click on them, choose properties, and then choose "Summary" Tab Page, it contains those information like title, category...

Thank You~~
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Suresh Kumaran | last post by:
Hi All, Does anybody know the sytax in VB.NET to write the contents of a multiline text box to a text file? Appreciate help. Suresh
4
by: Marty | last post by:
Hi everybody, Is it possible to do that in VB.NET: I have a text file that is filled with new lines of text every n seconds. This text file get very massive. I want to have my program to...
4
by: supster | last post by:
I have the full file path of a file stored as a string and I'de like to get the file size in bytes. What is the most efficient way of doing this with a static method from the File class or...
4
by: bnob | last post by:
I must read a txt file and when I found a line beginning with the word "Backup", I must replace this line with "Save" The read and the write must done into the same file! I know how to read...
2
by: Patrick | last post by:
Hello - I can read the csv file line by line into a one dimensional array - no problem. But when the data has 7 columns - and you'd like the Names to appear in a combo box, it can get tricky. ...
8
by: Andrew Robert | last post by:
Hi Everyone. I tried the following to get input into optionparser from either a file or command line. The code below detects the passed file argument and prints the file contents but the...
13
by: Marc | last post by:
The first part of the below writes the name and location of all buttons on a from to a text file. The second part reads that information back in and recreates the buttons. My problem is reading...
0
by: doubts | last post by:
Hi, I have a query regarding reading Image Property for button from a XML file . I read XML files to Generate Screens using System.Windows.Forms.Controls .The XML file is read and properties...
1
by: doubts | last post by:
Hi, I have a query regarding reading Image Property for button from a XML file . I read XML files to Generate Screens using System.Windows.Forms.Controls .The XML file is read and properties...
4
waynetheengineer
by: waynetheengineer | last post by:
Hello everyone :) I am trying to write VB code for reading filenames and file property values in a specific directory. For example, I have a directory called C:/Bears and in that directory...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.