batch script that tells me when was the last time a file has been accessed

前端 未结 3 910
执笔经年
执笔经年 2021-01-24 21:01

I have a list of sales orders in a folder. I want a batch script that can output into a txt file, when were all the files last accessed but not necessarily modified.

3条回答
  •  醉酒成梦
    2021-01-24 21:19

    Last Access has been turned off by default for many years.

    This command shows the setting of any computer you are interested in.

    fsutil behavior query disablelastaccess
    

    For using lastaccess - programs that don't open a file under user direction (eg search indexers, icon extractors like explorer, property sheets, etc) have to go back and restore last access to what it was before they opened it.

提交回复
热议问题