Counting how many times files are opened

I'd like to write a program running in the background when Windows starts, which counts how many times a particular file is opened and what that file is. Time is not an issue - the program should save results in a file/db and update that file/db when windows starts again - it should NOT simply count how many times a file is opened for that session. For example some output from the program might be:

(session 1 (ie first time logged in))

Name of file |Number of times opened
------------- |----------------------
somefile.txt | 321
dsfile.txt | 214


(session 2 (ie second time logged in))

Name of file | Number of times opened
somefile.txt |345
dsfile.txt |235



Please could I have some ideas/pointers on how to go about this? Many thanks.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!