Friends

Monday, April 11, 2011

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

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

0 comments:

Post a Comment

#
### ###