Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Some files are sometimes in use and if we try to access those files .. It shows error File is in use ..

If we want to safely remove a PenDrive it shows drive is in use ..

Qn. Know which process is currently using that file? and How to close handle of that file?
Posted

1 solution

Handle is a utility that displays information about open handles for any process in the system. You can use it to see the programs that have a file open, or to see the object types and names of all the handles of a program.
Download it at: http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx[^]
 
Share this answer
 
Comments
ProEnggSoft 19-Feb-12 23:57pm    
My 5!
MayankNainwal 20-Jul-12 14:56pm    
Can i know the code or API for the same(Handle utility), Code to get handles of files accessed by a process...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900