Home > windows > Which process is locking a file on Windows ?

Which process is locking a file on Windows ?

List processes locking a file by file path sub-string:

Command line

  1. Install the handle tool from the Sysinternals suite
  2. Run handle -u [file path sub-string] in a cmd.exe window

The -u option includes the user owning the process.

Example:

handle -u "some.pdf"
AcroRd32.exe   pid: 11208  type: File  localnet\oliver 
244: C:\Users\Public\Documents\some-folder\some.pdf

GUI

  1. Download Sysinternals Process Explorer
  2. Menu : Find – “Find Handle or DLL …”

process-explorer_find-handle-or-dll

process-explorer_search-handle-or-dll_dialog

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: