473,806 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing File Property - "Comment"

BK
I need to Set & Get the "Comment" property of files. I would like to know
what classes handle these in VB.NET.

The VBA code is sen at
http://support.microsoft.com/default...b;en-us;212724

To set the comment manually, we have to right click a file in windows
explorer, click on "Properties " and then select the "Summary" Tab. Making
sure the view is "Simple" there will be a text box to enter the comments.
Once this is set, we can add the comment filed to show in windows explorer by
right clicking and adding the property.

I am using Windows XP Professional.

Thanks.

Nov 21 '05 #1
4 3707

Dsofile.dll lets you edit Office document properties without Office in
Visual Basic .NET 2003 and in Visual Basic .NET 2002

http://support.microsoft.com/default...b;en-us;224351

afaik there is no pure managed code solution for this readily
available.

HTH,

Sam
On Tue, 8 Feb 2005 11:39:05 -0800, "BK" <BK@discussions .microsoft.com>
wrote:
I need to Set & Get the "Comment" property of files. I would like to know
what classes handle these in VB.NET.

The VBA code is sen at
http://support.microsoft.com/default...b;en-us;212724

To set the comment manually, we have to right click a file in windows
explorer, click on "Properties " and then select the "Summary" Tab. Making
sure the view is "Simple" there will be a text box to enter the comments.
Once this is set, we can add the comment filed to show in windows explorer by
right clicking and adding the property.

I am using Windows XP Professional.

Thanks.


B-Line is now hiring one VB.NET developer for
WinForms + WebServices position with ASPX in future.
Seaking mid to senior level developer. For
information or to apply e-mail sam_blinex_com.
Nov 21 '05 #2
"BK" <BK@discussions .microsoft.com> schrieb:
I need to Set & Get the "Comment" property of files. I would like to know
what classes handle these in VB.NET.


OLE Structured Storage Classes
<URL:http://www.mvps.org/emorcillo/dotnet/grl/>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
BK

Thanks. Yes - that works but only for Microsoft Documents. It does not work
for PDFs and GIFs (I tested only these two) - but you can actually set the
comments through Windows Explorer. It seems to work for only OLE compound
files - So I gues I am missing something.

"Herfried K. Wagner [MVP]" wrote:
"BK" <BK@discussions .microsoft.com> schrieb:
I need to Set & Get the "Comment" property of files. I would like to know
what classes handle these in VB.NET.


OLE Structured Storage Classes
<URL:http://www.mvps.org/emorcillo/dotnet/grl/>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
"BK" <BK@discussions .microsoft.com> schrieb:
Thanks. Yes - that works but only for Microsoft Documents. It does not
work
for PDFs and GIFs (I tested only these two) - but you can actually set the
comments through Windows Explorer. It seems to work for only OLE compound
files - So I gues I am missing something.


I fear you have to dig into NTFS steams to do that:

<URL:http://msdn.microsoft. com/library/en-us/dnfiles/html/ntfs5.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

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

Similar topics

4
38740
by: Bill Dee | last post by:
I use XML comments around most of my class libraries public property and methods, for example: /// <summary> /// blah blah /// </summary> However I have a few dozen public constants as well as a few properties and methods that I do not want to provide any XML comments for. This generates errors like this:
3
8109
by: n_o_s_p_a__m | last post by:
someone please advise
11
2657
by: ajikoe | last post by:
Hello, I used Visual C# Standard Edition. I want to comment my program using xml commentary method, I don't know why if I use value and example tag, it is not working / showed in the html result. for example I have Property ///<value>this is in description</value> ///<example>this is in Example</example> public int A{
0
2253
by: Dommett | last post by:
I would like to suppress the warning on some methods (e.g. Dispose which doesn't really need a comment and also some private methods I just dont want to explain). What I'd like is a way to do the following: /// <Summary> /// Some text ... /// </Summary> public void SomeMethod ()
3
6253
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store that multiple worksheet data in different table.How can i do it.Below is my xml file. <?xml version="1.0"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" ...
3
5403
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store that multiple worksheet data in different table.How can i do it.Below is my xml file. <?xml version="1.0"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office"...
12
4829
by: Robert Fuchs | last post by:
Hello, This example: public class BaseC { public int x; public void Invoke() {} } public class DerivedC : BaseC
14
10904
by: terrible.theterrible4 | last post by:
Hello w3c,php, fedora + apache experts! Is there code I can use for POST A COMMENT? I am not ready for PHP yet. Anybody did it in JS?
1
1300
by: Hugh Oxford | last post by:
I've seen this in code and my IDE highlights it differently. Is it notable in any way?
0
10624
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
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...
1
10374
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9193
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
7650
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
5546
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...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.