0

How could i access the Comments and/or Description fields of a file (doc,xls,pdf,ppt,txt,html etc.) ?

I need to do this so i could store a unique ID for the file in case it gets renamed and there could be 2 files with the same name on the server , but on the desktop i can't have two with the same name , so i must check/set this unique ID.

the other way i tough of is to store sqlce/sqlite db in the folder and use it as a file reference, but then if my file watcher isn't running , and the user renames the file it gets really messy.

any ideas/code samples are welcome.

Nikola Sivkov
  • 2,812
  • 3
  • 37
  • 63
  • possible duplicate of [How to access tag information on office files via C#](http://stackoverflow.com/questions/7759661/how-to-access-tag-information-on-office-files-via-c-sharp) – blowdart Apr 28 '12 at 14:42
  • 1
    Maybe you can use [Alternate data streams (ADS)](http://en.wikipedia.org/wiki/NTFS#Alternate_data_streams_.28ADS.29) , http://stackoverflow.com/questions/604960/ntfs-alternate-data-streams-net – L.B Apr 28 '12 at 14:43
  • Think this is what you're looking for: http://stackoverflow.com/questions/5337683/how-to-set-extended-file-properties – dezfowler Apr 28 '12 at 15:24

0 Answers0