473,659 Members | 3,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3313
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
9845
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 file). FileInfo and FileSystemInfo classes expose only the standard properties (create time, mod time etc..). Any pointers would be greatly appreciated. Thanks, Ram Thiru
4
14936
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 the responding application (this method was to slow for my needs). The other way was using the dsofile.dll from microsoft. With that, first, it seemed to work.
4
8665
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 properties provided by OLE, but those only work for Office document. The explorer displays this information but I have no clue to access from C#. Hints and Help are appreciated. Regards, -- David
1
1618
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 Product Version
1
5978
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 even what these properties (attached to all files in Windows XP) are called. Any help will be appreciated. Thanks. Corey Ellsworth
0
1549
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 8.0. My question is for excel, will extended properties be always 8.0. Or it may varies depending on excel version installed on client PC.
0
1234
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 in one data grid column. Dim file As String = "test.txt" Dim path As String = "C:\" Dim ds As New DataSet("Textfiles")
0
1229
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 dataset class. Problem is xsd blows off the extended property definition when it creates the ..cs file. What's up... this is a show-stopper? Is this really true? (VS 2005) Thanks.
0
988
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 the extended properties value). Thanks JCVoon
0
8337
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8748
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8628
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7359
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2754
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.