Get username of opened file

Posted by Mike L. on Stack Overflow See other posts from Stack Overflow or by Mike L.
Published on 2010-04-07T16:39:47Z Indexed on 2010/04/07 16:43 UTC
Read the original article Hit count: 276

Filed under:
|
|

Is there a way to learn the username of the user that has a file open?

I am developing a program that will be a desktop client for many users. The application will open some files and I'd like to allow many users to open the files at the same time, but only allow the first user to have write privileges. What I want is to be able to tell the other users who has write access to a file.

Is that something that can be learned by an application? (I am developing in VS 2008).

© Stack Overflow or respective owner

Related posts about c#

Related posts about file