I have an application that is unable to rename a file (programmatically). I believe the file is being held open or is locked in some way by another process. How can I go about identifying which process is holding a file open?
I have an application that is unable to rename a file (programmatically). I believe the file is being held open or is locked in some way by another process. How can I go about identifying which process is holding a file open?
Process Explorer (procexp)
http://technet.microsoft.com/en-us/s.../bb896653.aspx
Goto find->find handle or dll
either input file name, part of file name, or just c: to get every open file on c:
Taz (12-09-2008)
Thanks, James. That works like a champ!
This: http://ccollomb.free.fr/unlocker/ is brilliant but doesn't work in x64 (yet)
have an unlocker program my self comes in handy at times, windows can frustrate the hell outta you some times unable to delete files
this can all be done by right clicking my computer and going to manage
□ΞVΞ□
it should be remebered with this unlocker programs, why the file is locked in the first place.
You can easily lead to read modify write problems.
(courrupt files, and serously screw up the app that was using it)
throw new ArgumentException (String, String, Exception)
There are currently 1 users browsing this thread. (0 members and 1 guests)