Re: PROPERTIES DIALOG TIME ACCESSED

Tech-Archive recommends: Fix windows errors by optimizing your registry



Karl wrote:
Reading a file, even its properties, counts as "accessing" it. Try the same
thing
using the File-Properties dialog.

If i understand the above correctly means you can never find the last time
another
program accessed this file. You would always get the time your program
accessed
the file. Am I wrong here?

Here is what happens with the CFileInfoDemonstration program. I just ran the
program and selected file A. The program result was accessed Tuesday May 10,
2005 11:23:22 am. This is correct. Next I exit the sample program then access
file A and close it. Next I start demo pgm and select file A again. The time
accessed
remains the same as the previous time. I do this a few times, but the time
does not
change. What am i missing? I have no idea why this should not keep working. If
I do this manually with dialog properties it works correctly every time.

Please explain.


"Karl E. Peterson" wrote:

> jerry_ys wrote:
> > Thanks Carl, but unless i'm making a mistake it seems the sample you
> > pointed me to does not yield the correct time after providing the
> > correct time the first time.
>
> Reading a file, even its properties, counts as "accessing" it. Try the same thing
> using the File-Properties dialog.
>
> > Also I suspect you are not using the api's i mention in my question to
> > obtain this time . m_fi.LastAccessTime .
>
> Right, those timestamps were extracted from a WIN32_FIND_DATA structure returned by
> FindFirstFile. I'm pretty sure you'd observe the same results using GetFileTime.
> Given the code in that sample, such a test should be pretty easy to code up, eh?
>
> > Do you see the same problem or is it just me?
>
> Not sure it's a problem?
>
> Later... Karl
> --
> Working Without a .NET?
> http://classicvb.org/petition
>
>
>
.



Relevant Pages

  • Re: For LBS Mechanics
    ... - your posts are not only always detailed but also ... I got the same impression from reading books ... >on CVS and Subversion written by Karl Fogel. ... Carl Fogel ...
    (rec.bicycles.tech)
  • Re: For LBS Mechanics
    ... Reading your posts in cycling newsgroups made me mix up you with ... Subversion's Karl, - your posts are not only always detailed but also ... I got the same impression from reading books ...
    (rec.bicycles.tech)
  • Re: Getting addresses OUT of a spreadsheet
    ... G'day there Karl, ... feature. ... I was probably reading more into the tone of ...
    (Ubuntu)
  • Re: OT: Ricky Gervais Podcasts
    ... podcasts over the weekend after reading that they were so successful.I ... listened to the first 6 episodes out of the 12 and I really enjoyed them and ... So send them a pint of milk then". ... beginnings of the crazy world of Karl. ...
    (uk.media.tv.misc)
  • Re: OT: Ricky Gervais Podcasts
    ... podcasts over the weekend after reading that they were so successful.I ... listened to the first 6 episodes out of the 12 and I really enjoyed them and ... So send them a pint of milk then". ... beginnings of the crazy world of Karl. ...
    (uk.media.tv.misc)