Link to home
Start Free TrialLog in
Avatar of Sean-CIX
Sean-CIX

asked on

App or way to tell who is in a file that is locked?

Had an interview today and the guy asked an interesting question. What way (sounded like an app) can you tell who is in a file that is locked and someone needs access to it.

no one has ever told me how to tell who is in it.. so i am curious how you can tell?
SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Both the above ways work on network files.
If you want to check a file on the local disk then a very good tool Unlocker from the following site :
http://www.emptyloop.com/unlocker/
I ve been using it for many years and it's very good.
The file server management console will show you open sessions and open files, including username, full path, what rights are currently being used, how long has the session/file has been open for. To access either use Start-Administrator Tools -File Server Resource Manager or launch server manager (2008 and later) and expand the roles and go to file server.
@NikolasG

I've only used the free version, but does unlocker tell you who has locked the file? It was my understanding it only tells what has a file locked.
@Kaufmed
There is only the free version with a possibility to donate if you wish.
Yes the program only tell you the process that has locked the file not the user. That's why I said that this is for the local files not in a network environment.
In case of a network shared file it only tells you that is used by process sys.
That's why I said that this is for the local files not in a network environment.
...so it handles multiple users logged in to the same box at the same time? [ That's my point  ; )  ]