Hi Scribnar,
There are a variety of diagnostic tools that you can use to try and determine what
process has the open handle. For a tool with a GUI, see Sysinternals "Process
Explorer". And for a command-line tool see Sysinternals "Handle" or Microsoft's
"Open Handles".
- Process Explorer
Copyright © 1998-2002 Mark Russinovich
Find out what files, registry keys and other objects processes have open, which DLLs
they have loaded, and more. This uniquely powerful utility will even show you who
owns each process.
http://www.sysinternals.com/ntw2k/freeware/procexp.shtml
- Handle
Copyright © 1997-2001 Mark Russinovich
This handy command-line utility will show you what files are open by which processes,
and much more.
http://www.sysinternals.com/ntw2k/freeware/handle.shtml
- Open Handles
For information on Microsoft's "Open Handles" tool (oh.exe) see the following
Microsoft Knowledge Base Article, section titled: "Cause 2: The File Is Being Used",
and the "additional information" article: KB172710.
KB320081 - You Cannot Delete a File or a Folder
http://support.microsoft.com/?scid=320081
NOTES:
- The OH Tool discussed in KB172710 can be found on the Windows 2000 Professional
Resource Kit companion CD. Or you can download it as "Windows 2000 > Technical
Resources > Resource Kits: Free Tool Downloads". For more information, see the
following Microsoft Knowledge Base Article:
KB274305 - Free Windows 2000 Resource Kit Tools for Administrative Tasks
http://support.microsoft.com/?scid=274305
- The gflags.exe program discussed in KB172710 is one of the Support Tools included
on the Windows 2000 CD (see Windows 2000 Help topic "To install Windows 2000 Support
Tools").
--
Carrie Garth, Microsoft MVP for Windows 2000
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- c x g
: "Scribnar" <suresh_scribnar AT hotmail DOT com>
: Wrote in message : Sent: Friday, September 05, 2003 5:10 AM
: Thanks for your answer. But, that shows only the files
: opened by the name of network share. if a file is opened
: from the same computer, that file name does not show up
: there. What i want to know is, which process running in
: the system has opened a perticular file. or which
: processes has opened which files. Please do let me know if
: there is any utility or if there is any windows API
: function i can call from my code to find out.
: >"Bernardt Nel" <bernardt.nel AT sasol DOT com>
: >Wrote in message : >Sent: Friday, September 05, 2003 3:51 AM
: >Try going to Manage My Computer, then open Shared Folders,
: >then look at Sessions and Open Files. If anyone is keeping
: >them busy, it should display here..
: >>"Scribnar" <suresh_scribnar AT hotmail DOT com>
: >>Wrote in message : >>Sent: Friday, September 05, 2003 3:32 AM
: >>Hey everyone out here,
: >>I'm getting this error in several occations.
: >>1. while deleing a file
: >>2. while trying to compile
: >>3. Whenever the file has to be written by a program
: >>Any one out here has any utilities( or knows which
: >>functions in windows i should call) to find out, which
: >>process is using a perticular file or which files are
: >>being used by which processes?
: >>I'm only expecting the answer for the above question.
: >>Please don't tell stop the indexing service or disable
: >the
: >>antivirus software. i have already tried it.
: >>This error is making me go nuts.