Background (not related though) : I have a friend who live in HOSTEL, his roommates aren’t very trustworthy people, he said to me, to make something for him, so that He could know which files and folders were opened in his absence by his roommates? (They have a mutual agreement of not opening someone personal folders) (He is supposed to share PC and can’t hide or encrypt his personal folders) So I decided to go with C# because my friend is using Windows OS.
Required Behavior : So The task is to make a Windows Form Application that will logs name and location of every file and folder opened by user in the Windows Explorer, during the application running time.
What I Tried : I tried to use a class of FileSystemWatcher
but it only has four events of Changed, Created, Deleted & Renamed which I don’t need at all, It doesn’t matter if user is changing or deleting or creating or renaming something, all it does matter is which files & folders are opened by user ...?
If it could be done in Java I am also ready to give it a shot, just point me in the right direction !!