CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    8

    File access time

    I wote a test app to list the last_access_time for files using the FindFirstFile group of functions.

    When looking at the WIN32_FIND_DATA::ftLastAccessTime data in my test app, everything looked ok, but when I checked what Explorer thought the time should be I saw that the last_access_time had been updated to when my test app ran. My aim was to have a non-distructive method of checking this time information.

    Has anyone got any ideas as to how to achive this?

    adam

    -------------------------------
    Adam Straughan
    Software Engineer
    Cambridge, UK
    -------------------------------

  2. #2
    Join Date
    May 1999
    Posts
    8

    Re: File access time

    Sorry, I didn't do enogh checking before posting. It looks like Explorer always modifies the time to now then reports the time as now, which is of use to neither man nor beast. FindFirstFile does not seem ot destroy the data.

    adam

    -------------------------------
    Adam Straughan
    Software Engineer
    Cambridge, UK
    -------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured