Tag Archives: folder

Move file in use , who is blocking it or using it , force move delete

Published by:

We’ve all experienced it sometime: A file or folder is in use, and windows refuses to move or delete it. Even though it should, Windows rarely shows us what or who is blocking the file. Left in the dark, you’ll end up closing all sorts of apps, killing explorer, and what not. Then there are those cheesy apps, like “who’s blocking”, that do all but free the file. So.. there we are.

A few days ago, I stumbled upon a small command line app from Mark Russinovich. Now, that sounds like a guy who knows how to kill a blocking app. 😉 (just kiddin’). In fact, his app called “handle” is featured at Windows Sysinternals. Here is what it did for me.

I had this demo of Mixmeister and I wanted to “move” the downloaded install-file-folder to my backup drive. But somehow it was blocked. Windows, endlessly informative, told me nothing that I could use:

inuse1

So I fired up HANDLE. I asked it to tell me who’s blocking Mixmeister.

Handle mixmeister

I then got a list of “handles”, two of them were explorer and one of them was my browser chrome. To chase these apps away from my folder (file), I needed the PID of the app and the handle on the file. Handle provides both. In my case, explorer had pid 3796 and the handle on my folder had 1978. I could now get it off by entering:

Handle -c 1978 -p 3796

inuse2

I did the same for the other two handles, and see there: The folder was free and I could move it quite happily.

Just remember: Killing handles “can” crash your machine. When attempting this, always make sure any unsaved data is saved!

You can download HANDLE from here.

Left click folder freezes or hangs explorer

Published by:

This is a troubleshooting post.

Symptoms:
Windows explorer may stop responding when left (or right) clicking a folder. The explorer is freezing or freezes for some time, typically 30 seconds. After that you can access the folder. Attempts to close the folder while the hourglass is turning results in an error or message “This program is not responding”. You can either end the process, after which explorer restarts, or cancel.

Solution:
In my case I found windows looking for Network Drive letters. I noticed that using Procmon, a process monitor.

ntwkrflt

Just after the explorer had touched a .lnk shortcut file.

lnknetw

It seemed windows, when clicking the folder, looks trough all the files and then discovered a shortcut to a network drive that doesn’t exist. It was an old shortcut pointing to a fileserver that doesn’t exist anymore. The query typically times out, but that takes a while.

The problem was solved by removing (deleting) the shortcuts.
ntwkflt

Bad Behavior has blocked 1242 access attempts in the last 7 days.