ftLastAccessTime isn't really Last Access Time ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My customer has asked for an email notification when a file has been sitting
in a directory for too long without being accessed.

Using FindFirstFile and FindNextFile the ftLastAccessTime IS NOT UPDATED if
a file is opened using notepad or InternetExplorer. The LastAccessTime IS
UPDATED if you open the file with Word, Adobe, or get the file properties.

What is ftLastAccessTime really, if it isn't Last Access Time?

This is Microsoft case number SRX041108602810
 
Hi =?Utf-8?B?QmlsbCBHaWJzb24=?=,
Using FindFirstFile and FindNextFile the ftLastAccessTime IS NOT
UPDATED if a file is opened using notepad or InternetExplorer. The
LastAccessTime IS UPDATED if you open the file with Word, Adobe, or
get the file properties.

You are right!

But you are aware of the fact, that the user can disable the last-access
time?

Please execute the following on a command prompt:

"fsutil behavior query disablelastaccess"


See: Optimizing NTFS Performance
http://www.microsoft.com/resources/documentation/Windows/XP/all/reskit/en-
us/prkc_fil_punq.asp


--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Back
Top