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

Getting Extended File Properties

I need to obtain the extended file properties, such as Owner, Title, etc,
for a file in a .net program. I have looked through the FileInfo class and
I cannot see any methods or properties that will expose this. In the old
days we used to use GetFileInfo but I don't see it in .Net anywhere.

How can I get this information?
Thanks,
T
Mar 7 '06 #1
1 3292
Hello, Tina,

If you mean the extended file properties available on NTFS systems, I
think that you will need to use DSOFile.dll for this. See

http://support.microsoft.com/?id=224351

for details. (There is a problem if you need to create these properties
for files that don't already have them. There was recently a posting
about a solution for this. See

http://www.codecomments.com/archive2...-2-813451.html

if you need to do this.

Cheers,
Randy
Tina wrote:
I need to obtain the extended file properties, such as Owner, Title, etc,
for a file in a .net program. I have looked through the FileInfo class and
I cannot see any methods or properties that will expose this. In the old
days we used to use GetFileInfo but I don't see it in .Net anywhere.

How can I get this information?
Thanks,
T

Mar 8 '06 #2

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

Similar topics

5
by: Ram [MSFT] | last post by:
Hi All, I'm trying to programatically (using c#) read the file properties (Title, Summary, Author, Comments etc.... The stuff that shows up on the Summary tab when you see the properties of a...
4
by: Markus Brenner | last post by:
Hi there! Hope anybody can help. I want to at least read (maybe write) the extended file properties of office documents like winword, excel, .... I've tried two ways till now, one by opening...
4
by: David Farruggio | last post by:
Hello, I'd like to read the extended file properties using C#. Those are e.g. author, subject, ... of a word file or bit rate, artist, duration of a mp3 file. I already tried to use the storage...
1
by: Locke Nash Cole | last post by:
Can someone point me in the right direction? I'm looking to get extended file information on .exe or .dlls such as File Version Description Copyright Language Internal Name Product Name...
1
by: Corey Ellsworth | last post by:
Does anybody know how to read/write extended file properties such as comments, keywords, author, etc. in VB.NET? I can't find anything anywhere. It may be because I don't know where to start or...
0
by: archana | last post by:
Hi all, I wrote one application to read excel files data into datatable. To get data of excel file into datatable i used oledbconnection. In connectonstring i set extended properties as excel...
0
by: sags | last post by:
Hi , Iam a new uesr of this group. I have a small doubt . Iam using the code mentioned below to retrive the data from tab delimited text file ., but Iam getting all the columns of the text file...
0
by: TN | last post by:
I created a dataset in code (with extended properties on the table and the columns) and I saved the schema (the properties were there). Now I am trying to take that .xsd file and generate a...
0
by: jcvoon | last post by:
Hi: How to notify extended properties provider when the component is removed ? so that i can deleted the entry for that component from extended properties holder (the collection use to hold all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.