Re: PROPERTIES DIALOG TIME ACCESSED
- From: "jerry_ys" <jerryys@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 10 May 2005 22:12:01 -0700
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
>
>
>
.
- References:
- PROPERTIES DIALOG TIME ACCESSED
- From: jerry_ys
- Re: PROPERTIES DIALOG TIME ACCESSED
- From: Karl E. Peterson
- Re: PROPERTIES DIALOG TIME ACCESSED
- From: jerry_ys
- Re: PROPERTIES DIALOG TIME ACCESSED
- From: Karl E. Peterson
- PROPERTIES DIALOG TIME ACCESSED
- Prev by Date: Re: Microsoft Layer for Unicode on Windows 95/98/Me systems
- Next by Date: Re: PROPERTIES DIALOG TIME ACCESSED
- Previous by thread: Re: PROPERTIES DIALOG TIME ACCESSED
- Next by thread: Re: PROPERTIES DIALOG TIME ACCESSED
- Index(es):
Relevant Pages
|