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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top