bg-leaves
bg-leaves
Trail postsTools → Remove locked files in windows
Remove locked files in windows

Posted by  March 28, 2010  Comments ( 2 ) ↓

Found a great utility today and I thought I'd help spread the word Smile

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!

Jump to the start of this post ↑

Comments ( 2 )

Jump to comment form ↓

  1. Madde:Gravatar
    haha, delete your problems with Mac ;)
    Posted @ July 06, 2010, 21:41 # LINK
  2. thomas:Gravatar
    Mac's Incredible ;)
    Posted @ July 19, 2010, 16:40 # LINK

Jump to the start of this post ↑

Add your Comment

[# = Required Field]  Get a Gravatar

 

 

[x]