Many times we need to log off or restart Windows to apply the changes made by a registry script or software. Sometimes we can avoid the log off or restart by doing a simple "End Task" of Windows Explorer and restart Explorer using Task Manager.
- Hidden Trick to Exit Windows Explorer Using Shutdown Dialog Box in Windows XP
- Hidden Trick to Exit Windows Explorer Using Start Menu in Windows Vista and 7
But doing End Task and restarting Explorer using Task Manager requires a few manual steps. Wouldn't it be great if you can get a simple shortcut on Desktop or Quick launch toolbar and simply click on it to automatically end task and restart Explorer?
Today in this tutorial, we are going to share a simple Batch script which can end task of Explorer and then restart it automatically.
Simply copy paste following code in NOTEPAD and save the file with name "Restart_Explorer.bat" (including quotes):
@ECHO OFF
echo.
echo.
echo ==========================================
echo Simple Script to Restart Windows Explorer
echo.
echo Created by "Vishal Gupta" for AskVG.com
echo ==========================================
echo.
echo.
echo STEP 1: Closing Explorer . . .
echo.
TASKKILL /F /IM explorer.exe
echo.
echo.
echo STEP 2: Starting Explorer . . .
start explorer.exe
echo.
echo SUCCESS: Explorer is running.
echo.
echo.
PAUSE
That's it. You can place this script at any location like Desktop, Quick Launch toolbar and whenever you need to restart Explorer, simply run the script.
PS: If you don't want to create the script manually or face any problem while creating the script, you can download a ready-made script using following link:
Posted by: Vishal Gupta | Categories: Windows 7, Windows Vista, Windows XP
MarcusW
Seem to have a problem with this. I did everything as instructed but when I do the whole clicking business, it says the application isn't found? Yet it's 'right' freakin' 'there'. *points to appropriate directory*
VG
^^ Try to replace "TASKKILL /F /IM explorer.exe" with Tskill explorer.exe