sundar156 wrote:
But a FileSystemWatcher can only watch for created ,Renamed ,Changed,Deleted Events...(i Have to generate an event when a user clicks on the folder or file i.e before he opens a file) I should not allow the user to open the folder/File untill the Server(or an admin in the server machine) permits.
Ok, now I see your problem. Well thats difficult. It has something to do with the rights management and I think it can't be solved easily. I don't know a really good solution but I got an idea. You could just regret the user the access and allow your own application the access. A user has then to use this application to open a file/directory forbidden to him. Of course than it's possible to ask the admin. Sound silly? Perhaps, but I don't know another way, yet. I haven't done anything with file rights management yet. Sorry, Ingo
------------------------------ PROST Roleplaying Game War doesn't determine who's right. War determines who's left.