Create Simple Script to Close and Restart Explorer Automatically in Windows XP, Vista and 7

If you like this article, please share it with your friends and contacts on Google Plus, Facebook and Twitter using following buttons so that they can also enjoy the article:







Email

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.

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:

Download Link

Other similar articles that may interest you:





This article was posted by in following section: Windows 7, Windows Vista, Windows XP.

If you enjoyed this article, subscribe to our RSS feed or free newsletter to get all new articles directly in your Inbox. Also check out our popular articles and archive to read other interesting articles.


Best and Most Popular Articles

Read More Articles



Readers' Comments

Add a Comment

(required)