NTFS Access Date Directory Entry Changing

Posted on 2009-04-21
Last Modified: 2013-12-28
I created a Perl script to simply list file sizes and last accessed date.  Low and behold, after running script, the new access date/time shows current.  Why is it changing the date/time (the file isn't being opened, just the directory is being read) and is there a way to stop it?
Question by:ejefferson213
    LVL 5

    Expert Comment

    Because you are accessing the file to check it's date/attributes.

    Can you just change your script to use modified date?

    If you right mouse click a file in explorer, and go properties, it does the same thing.

    Author Comment

    That's a good suggestion, I'll try that. However, I'm not opening the file but looking at its attributes through the directory.  I don't understand why Microsoft would change the access date when in fact, I haven't accessed the file.
    LVL 5

    Expert Comment

    ...but you have, to access the attributes :p
    LVL 5

    Accepted Solution

    One other thing forgot to mention.  Even if this wasn't the case, your on access virus scanner would scan the file as soon as you clicked it anyways, which would access the contents of it to scan it.

    Author Closing Comment

    Thank you for your assistance.  I was hoping this wasn't the case but it is what it is.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
    The viewer will learn how to download, install and use CrashPlan from on Windows 7. Open your browser and go to Click get started, it’s free then Click the Download CrashPlan button: Click save in Internet Explorer, the…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now