locked
Set a file's creation and modification date

Answers

  • Hi,

    As you noted, the DateCreated property of StorageFile class is read-only.

    The API SetFileTime function is mainly used to set or change related file dates. But it applies to "Desktop app only". It is not available in Metro style app.

    Metro style app runs in restricted sandox environment. Many restrictions are related to security considerations.


    Best wishes,


    Robin [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by gnichola Monday, April 23, 2012 6:56 PM
    Friday, April 20, 2012 1:35 AM
    Moderator