>I'm running a VFP package that updates several free VFP tables.
>When I browse the tables, I see the changes I make and the lastupdate column shows the correct date and time.
>However, when I look at the table in windows explorer the date doesn't change.
>It's windows 10.
>I checked the path several times.
>Any idea?
>
>Never mind.
>When I exited the app, the modification dates changed.
Depends on
(1) When vfp flushes the buffers to the windows' buffer cache
(2) When windows flushes its cache
The file times only changes when windows physically writes to a file
Read here
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365465(v=vs.85).aspx under FILE_NOTIFY_CHANGE_LAST_WRITE
Any change to the last write-time of files in the watched directory or subtree causes a change notification wait operation to return.
The operating system detects a change to the last write-time only when the file is written to the disk.
For operating systems that use extensive caching, detection occurs only when the cache is sufficiently flushed.
Gregory