Posted by March 28, 2010 Comments ( 2 ) ↓
Found a great utility today and I thought I'd help spread the word 
I guess most users of Windows have come across the below message (or similar)
Cannot delete file because it's being used by another person or program
The solution is simple, download the utility program Handle (freeware) by Mark Russinovich. It's a small, light-weight program which needs no installation. I unzipped it into "C:Program Filessysinternals".
I will use my actual problem as an example, I couldn't remove a folder named
"c:projectsliferayserversliferay-portal-6.0.0".
To locate the handle that stopped me from deleting the folder, I typed the following on the command line:
C:Program Filessysinternals>handle projectsliferay
Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
explorer.exe pid: 2984 A58: C:ProjectsLiferayserversliferay-portal-6.0.0tomcat-6.0.24webappsROOTWEB-INF
To close the handle, I typed the following (specifying the hex-code handle, -c A58 and the process-id, -p 2984)
C:Program Filessysinternals>handle -c A58 -p 2984
Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
A58: File (RW-) C:ProjectsLiferayserversliferay-portal-6.0.0tomcat-6.0.24webappsROOTWEB-INF
Close handle A58 in explorer.exe (PID 2984)? (y/n) y
Handle closed.
That's it, you should now be able to delete, move or do whatever with the file!
Comments ( 2 )
-
- thomas:

- Mac's Incredible ;)
- Posted @ July 19, 2010, 16:40 # LINK
- thomas:
Add your Comment
[# = Required Field]
Get a Gravatar