PDA

Click to See Complete Forum and Search --> : FilesystemWatcher -


veryjonny
Sep 1st, 2002, 07:24 AM
Now we can "watch" which files are being access ...easily done using filesystemwatcher, but say if I want to protect certain files , then how do I stop the user from "opening a file" when I do find that the user is accessing a "forbidden file"???

hellswraith
Sep 2nd, 2002, 08:34 PM
This should be enforced at the OS level. The admin can easily block access to certain folders. If the user doesn't have access, it won't let them in. This would illiminate the filesystemwatcher in the case your describing.

You can use the filesystemwatcher to log the activity and then present it to the admin of the computer, but if the person has already opened the file, there is nothing your going to do at that point. You need to stop them before they open the file, and as stated before, the filesystemwatcher isn't going to do that.

veryjonny
Sep 3rd, 2002, 12:25 PM
Thanks, but would u be able to point me to a link which would enable me to stop a user from opening a file programmatically (something like a utility folder guard does).

thanks