Thread: how to write 'advanced' file attributes?

  1. #1
    Registered User
    Join Date
    Jul 2010

    Question how to write 'advanced' file attributes?

    hi guys,

    i'm currently looking for a way to manipulate 'extended' file properties (like author, category, topic for pdf files).

    i know that there is the possibility to access file attributes with setFileAttributes(). the problem is that only attributes like "hidden" can be changed that way.

    i've read that property sets should be able to do what i need, so i read some articles on MSDN: storing property sets, property set implementation in com, some samples.

    i'm just afraid that they were a little bit too much for me. i didn't understood what i have to do in order to change attributes like author.

    so, in a nutshell: is there maybe somebody who can show me how to manipulate these file attributes (and maybe knows a good example)?

    thanks in advance

  2. #2
    Registered User
    Join Date
    Jul 2010
    hm...nobody here who has an idea of how to handle file attributes in c++?

  3. #3
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Portland, OR
    If you are looking specifically at PDF files, and their associated metadata, there is no relationship between those entities and anything within the filesystem. There are no associated file properties like that. The document metadata is stored within the PDF file in a PDF-specific format. Your code needs to understand PDF in order to access it.
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);

  4. #4
    Registered User
    Join Date
    Jul 2010
    actually i'm looking for this information in my files: Predefined Property Set Format Identifiers (Windows).

    almost all file types (or at least the most common like .txt, .doc, .pdf, ...) provide information about author, source, and so on - i'm looking for a way to change these data sets.

    i also tried this example from MSDN: WriteRead Sample (Windows) - it created a file, the file properties were empty though. do you know what i'm doing wrong?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you help me about tolower() in file
    By nctar in forum C Programming
    Replies: 7
    Last Post: 05-12-2010, 10:04 AM
  2. Write To a File Without Deleting
    By SamGray in forum C Programming
    Replies: 2
    Last Post: 09-06-2009, 11:56 PM
  3. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  4. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM