• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

Store user information inside NTFS structure

I need to store some information into "Comments" attribute of NTFS file structure and subsequently I need to retrieve the same informattion. How is possible to do this?
0
mondoricco
Asked:
mondoricco
2 Solutions
 
snagsy1980Commented:
I thinkthis is what you are trying to do http://www.mepis.org/node/7076 hope it helps
0
 
souseranCommented:
Open My Computer. Go C:\. Right-click on Name, and from the drop-down menu, select Comments. The Comments column will now show on the screen, but we're not done. From the menu at the top of the screen, select Tools | Folder Options. Select the View tab. Click the button to Apply to All Folders. Click Yes at the "Set all the folders on your computer . . ." message. Click OK all the way back out until you only have My Computer open.

To actually make comments on the various files, right-click on the file. Go to Properties. Go to the Summary tab and double-click in the white space to the right of Comments. Type your comments in the text box. Don't go overboard.

Alternately you can use a tool like Meta Changer, http://pcwin.com/Utilities/Meta_Changer/screen.htm but be aware that this program will change the file date on any files on which it is used. If your time and date stamps are important to you, and you have a small number of files, you're better off doing the changes by hand.
0
 
mondoriccoAuthor Commented:
Tanks, but I would like to do it in programmatic mode using C# or vb.net language.
0
 
souseranCommented:
Then your best bet might be to post your question in the Programming section as well as here. You can send an email to the Zone Advisor asking making the request. His contact information can be found here:

http://www.experts-exchange.com/M_716989.html
0
 
scrathcyboyCommented:
I have thought about this Q since you asked it, and cannot find any valid reason to do this.  You really do not have any reason or "right" to modify the contents of a file, unless you are trying to make it do something it is not supposed to do.  I am not accusing you of wrong doing, I don't judge anyone, but I see no reason to even attempt to do this programmatically.  The file is written AS it is written.  Why try to change it????
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now