PC Review


Reply
Thread Tools Rate Thread

How can I find the name of the process that has a certain file in use?

 
 
Marcel Brekelmans
Guest
Posts: n/a
 
      14th Dec 2006
Hi,

Is there a way to find the name of the process that has a file open? I know
of tools, like Unlocker, that can do it, so I assume there are some
systemcalls that can help me out.

Thanks.


 
Reply With Quote
 
 
 
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      14th Dec 2006
"Marcel Brekelmans" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Is there a way to find the name of the process that has a file open? I know of tools, like
> Unlocker, that can do it, so I assume there are some systemcalls that can help me out.
>
> Thanks.
>


No there are no system calls or public API's available for this, tools like Unlocker and
tools from Sysinternals are just using some non documented ntdll API's and are inspecting
the handle tables of each individual process, this requires "debugging privileges" to be
granted to the "spying" application.

Willy.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find out which process keeps a file open? Michael Moser Windows XP Customization 3 1st Apr 2008 11:09 AM
Find out if other process is accessing a file? Carl Microsoft Dot NET 9 11th Apr 2007 06:53 AM
How to find what in 'system' process has a handle on a file? Vanguard Windows XP General 1 16th Nov 2004 09:26 AM
Shell, Process.start cannot find file Nikolas via .NET 247 Microsoft VB .NET 1 31st Aug 2004 09:09 PM
Renaming file when its a live process - how to find original filename?? Mike Smith Microsoft Windows 2000 File System 0 20th Jul 2004 03:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:12 PM.