Folders last modified time stamp are not updated in Windows 7
After changing any .cpp file in Visual Studio, the last modified time stamp for the file's folder IS NOT updated. What's happening ? However when I change a Word (.docx) file, the last modified time stamp for the file's folder IS updated ! How come ?
April 30th, 2012 9:04am

Hi Please make sure the NtfsDisableLastAccessUpdate registry key which is under HKLM\SYSTEM\CurrentControlSet\Control\FileSystem has set to 0. If it doesn't, then please manually to change it to 0 or run fsutil behavior set DisableLastAccess 0 command under the elevated command prompt . Note: Change to this setting require a reboot to take effect. Wish these documents are helpful for you: http://technet.microsoft.com/en-us/library/cc753059(v=ws.10).aspx http://technet.microsoft.com/en-us/library/cc959914.aspx If the issue still persists after that, please try to edit these .cpp files via notepad but not Visual Studio, does the issue still occur? Thanks. Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2012 3:48am

Thanks for answering my question. NtfsDisblesLastAccessUpdate is set to 1 in my system. But here you'll find that, when Value = 1 : "When listing directories, NTFS does not update the last-access timestamp, and it does not record time stamp updates in the NTFS log.". But it doesn't say NTFS doesn't update last modified time stamps, it just says it doesn't record them (any time stamp) in the NTFS log.
May 2nd, 2012 8:53am

Hi Wish the following links are useful for you: http://blogs.technet.com/b/asiasupp/archive/2010/12/14/file-date-modified-property-are-not-updating-while-modifying-a-file-without-closing-it.aspx http://social.technet.microsoft.com/Forums/en-US/winservergen/Thread/2B8BACA2-9C1B-4D80-80ED-87A3D6B1336F Regards,Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
May 3rd, 2012 5:34am

The problem I'm reporting now is even worst, since the last modified time stamp is not being updated in the parent directory, even after the file is closed !! One other thing that strikes me, is why this problem occurs with Visual Studio files, but doesn't happen with Word (.docx) files ??
May 3rd, 2012 11:02am

Hi, If you thought this issue gets worse and if you have already set NtfsDisblesLastAccessUpdate to 0, then please revoke it to 1. From the above Blog we can see that in Windows 7, the "Last Modified" field on log files is not updated when a program attempts to open the file or the utility is stopped, this is a design change to NTFS , becase we cache the metadata for folder contents and do not refresh it until a handle is closed on an open file or an explicit call is made to retrieve the properties of an individual file. Per your current issue that even if you closed these Vistual Studio files, the timestamp still didn't update. Please try the following and check whether any of them work: - open the file in a second program - view the proprties of the file - "dir <filename>" at a command prompt In addition, if you edit these Vistual Studio files with Notepad(Before doing that, please close all the programs include Vistual Studio) and try to reproduce the issue, does the issue still occur? Regards,Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
May 4th, 2012 5:51am

If you could just tell me how to change the NtfsDisableLastAccesUpdate. I'm afraid to mess up with the registry ! Thanks
May 4th, 2012 8:13pm

Hi If you would like to set NtfsDisableLastAccesUpdate to 1, please run fsutil behavior set DisableLastAccess 1 command under the elevated command prompt, after that, you should restart the server to take effect. Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
May 7th, 2012 1:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics