Tech Sharing

Tech Sharing

Advertisement

Batch script to automatically reload explorer.exe

By on July 10, 2012

Sometime you may found that all the item in your desktop or in the taskbar suddenly disappear without any error or message; this is properly due to the hang of explorer.exe process. You can easily get back the content by reload the explorer.exe process.

 

The following bat script can easily help you to reload the explorer.exe process in your computer. Just open the notepad in your computer and copy the script below and save it as .bat extension.

 

Just double click on this file whenever your explorer.exe process get hang.

 

 

To use it do the following:

  • go to start
  • Click Run
  • type notepad
  • then copy the following:

———copy below this line—————–

@echo off
color 0B
echo.
echo Your desktop is being restored, Please wait. . .
ping -n 5 127.0.0.1 > NUL 2>&1
echo Killing process Explorer.exe. . .
taskkill /f /im explorer.exe
cls
echo Success!
echo.
echo Your desktop is now loading. . .
ping -n 5 127.0.0.1 > NUL 2>&1
echo.
ping -n 5 127.0.0.1 > NUL 2>&1
start explorer.exe
exit

———copy above this line———————

  • ¬†Paste into your blank notepad document. Then in the notepad window click file>save as and call it jumpstart.bat
  • Save it somewhere like My Documents or wherever you want. Then open up a window and find where you saved the jumpstart.bat file you just saved, then click and drag that file onto the start menu, then hover over “All Programs” until it pops up, then keep dragging the file into “Startup” and release it there. Now when you start your computer you’ll see your wallpaper come up, then this program will start and re-launch your Windows desktop. I’ve been using it on my computer with success. Sometimes it takes longer than others though.

 

Comments

No Responses to “Batch script to automatically reload explorer.exe”

Write a Comment

Captcha *

%d bloggers like this: