Lately I've been having some issues with a folder on my Windows 8 PC. For work purposes, I always keep the folder open and some screen shots in it. Unfortunately, after a while, when I switch back to the open folder, it just hangs and I have to run Task Manager and manually kill all instances of explorer.exe
, then run explorer.exe again to get rid of the stuck folder window and restore my desktop. After the latest batch of Windows 8 updates, I still don't see the problem fixed. Now it could be some software I'm running that's causing this problem, but I pretty much have the same setup as my old Windows 7 PC, with the most notable exception of having Classic Shell installed. I doubt that Classic Shell is causing this, but I wanted a workaround.
I wanted to quickly kill all instances of Explorer.exe and then relaunch it instead of doing it manually. So I created a batch file script to do this, and placed it on the desktop for quick-access. Here are the contents of the file which I named Explorer_Reload.bat:
taskkill /F /IM explorer.exe
It's just two lines. The first line invokes the taskill command which will remove from memory the specified program- in this case explorer.exe.
The second command re-launches explorer.exe so the taskbar and the desktop are returned to action. I had to use "start" instead of simply "explorer.exe" because that way the command line box disappears.
Note that you can easily customize this batch file to close and re-open/relaunch any application- simply replace "explorer.exe" with the program you want- for instance iexplore.exe for Internet Explorer or Firefox.exe for the Firefox browser.