how to write 'advanced' file attributes?

This is a discussion on how to write 'advanced' file attributes? within the Windows Programming forums, part of the Platform Specific Boards category; hi guys, i'm currently looking for a way to manipulate 'extended' file properties (like author, category, topic for pdf files). ...

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    4

    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
    zoidberg

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

  3. #3
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,273
    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.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    4
    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, 11:04 AM
  2. Write To a File Without Deleting
    By SamGray in forum C Programming
    Replies: 2
    Last Post: 09-07-2009, 12:56 AM
  3. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 05: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21