Sign in with
Sign up | Sign in
Your question

Check for number of times a file has been accessed

Tags:
  • Windows
  • Windows 7
Last response: in Windows 7
Share
October 3, 2014 4:55:54 AM

I want to write a batch file that checks if a particular file has been accessed a certain number of times, then deletes it if it has.

Is this attribute even stored by Windows?

More about : check number times file accessed

a b $ Windows 7
October 3, 2014 5:10:18 AM

I don't believe it's stored, no.

You can get the last time it was accessed, though.
m
0
l
a b $ Windows 7
October 3, 2014 5:42:11 AM

At least common file systems, like NTFS don't store that. It might be possibel, to get the information with a WebDAV proxy or something like it, but even then: how do you separate the users from the indexing service, virus scanner, defagmenter and so on?
m
0
l
Related resources
October 3, 2014 3:13:50 PM

Ok thanks.
m
0
l
a b $ Windows 7
October 3, 2014 3:25:23 PM

What are you trying to do? There may be another way that's easier.
m
0
l
!