What is locking a file?

Technical Q&A involving operating systems, networking, software, and hardware issues.

Moderator: jasonb

Post Reply
User avatar
jasonb
Site Administrator
Posts: 105
Joined: Tue Apr 22, 2003 1:54 pm
Location: Toronto, Canada
Contact:

What is locking a file?

Post by jasonb »

There are several third party tools that can give you this information (I use LockHunter), but there is also a little-known built-in tool that does this.

At an administrator command prompt, enter the command openfiles /local on and reboot. When you try to delete a file that is in use, the error dialog will now also tell what it is that's locking the file.

Additionally, you can issue the command openfiles to list all file locks.
Post Reply