Restart Windows Explorer explorer.exe with a shortcut - gHacks Tech News

Restart Windows Explorer explorer.exe with a shortcut

Windows sometimes displays a restart prompt when you install new software or update existing programs and applications on the system. And if you are into Registry hacking, you may also have noticed that the changes and hacks that you make do not become available right away most of the time.

While you could reboot your PC, or log off and on again, it is often enough to kill the explorer.exe process of Windows Explorer for the same effect. Just use Ctrl-Shift-Esc to open the Windows Task Manager, locate explorer.exe in the list, select the process, click on end process to kill it, then on File > New Task (run) and enter explorer.exe here to start the process again.

That's definitely faster than having to restart the system or log off and on again. If you are in a hurry, have to kill explorer.exe regularly, or simply prefer a one-click solution then the following shortcut to kill and restart Windows Explorer may be what you are looking for.

To create the shortcut do the following:

  • Right-click on the desktop or another location and select New > Shortcut from the context menu that pops up.
  • Enter the following command under type the location of the time in the window that is displayed:  cmd.exe /c taskkill.exe /f /im explorer.exe && start explorer.exe
  • Click Next, enter a name for the new shortcut, e.g. Restart Explorer to complete the creation.

restart explorer.exe

When you run the shortcut afterwards, it basically executes the taskkill.exe command that is used to kill explorer.exe, and when that is done a new instance of the Windows Explorer process will be started again. You are probably interested in the parameters:

  • cmd.exe /c run the command that follows and then terminate
  • /f forcefully terminates local processes
  • /im filename determines the file name, in this case explorer.exe, that you want to terminate
  • && adds another command to the end, in this case, to start the explorer.exe process

You will notice that the command window stays open after the commands have been executed which is an unfortunate side-effect of the method.

Update: As Cohesus mentioned in the comments, it is possible to bypass the command prompt window by adding start to the command. The command listed above has been adjusted accordingly, the screenshot is still showing the restart command without the start command.

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

  1. Cohesus said on August 9, 2012 at 2:11 pm
    Reply

    make it
    taskkill.exe /f /im explorer.exe && START explorer.exe
    then you wont have your cmd remaining open

    1. Martin Brinkmann said on August 9, 2012 at 2:28 pm
      Reply

      Great, thanks for your comment!

  2. Q said on August 9, 2012 at 11:36 pm
    Reply

    Martin, forceful termination of the explorer.exe process is not necessary to before starting explorer.exe again to notice Explorer shell related changes made via direct modification of the Windows registry. If the Explorer shell is simply closed, the Explorer process can still be started and shell changes observed.

    The User Interface to close the Explorer shell is not obvious, but from Windows 2000, Windows XP, Windows Server 2003, Windows Vista, and Windows 7 family operating systems, it can be done by selecting “Cancel” form the “Shut Down Windows” dialog box while holding the Ctrl, Alt, and Shift keys.

    1. Fine citizen said on August 10, 2012 at 7:11 pm
      Reply

      wow! you just blew me away with this.
      thank you, that’ll become handy

  3. ilev said on August 10, 2012 at 9:40 am
    Reply

    killing explorer.exe kills also icons of the startup applications on the taskbar (near the clock).
    Microsoft crap OS hasn’t been able, all these years, to restore those icons after explorer.exe restart.

    1. anony said on August 14, 2012 at 9:37 pm
      Reply

      Not sure when (before or after 7 sp1), but it’s now show up fine.

      It maybe crap, but it’s a crap that work like you want it to be. Unlike *X.

  4. Diego said on August 11, 2012 at 3:35 pm
    Reply

    For every WE instance…
    taskkill /F /FI “IMAGENAME eq explore*”

  5. Q said on August 31, 2012 at 11:26 pm
    Reply

    In addition to what I posted before, there is also another method of exiting Explorer.exe for Explorer for NT 6 series operating systems that are using the new Start Munu:

    Navigate to Loff Off/Shutdown/Hibernate/Restart button section (applies to entire section including button) and bring up the context menu while holding the Shift and Ctrl keys.

    Select “Exit Explorer”.

  6. Manager said on September 12, 2012 at 4:46 pm
    Reply

    Thank you so much. I really needed this. Thanks again.

  7. john smith said on March 19, 2013 at 3:47 am
    Reply

    This is a great shortcut that I find very useful, thanks!

  8. Dan said on June 12, 2016 at 10:53 am
    Reply

    Will this work in Windows 10 during a ‘black screen’ after logging in?

  9. Anonymous said on January 23, 2017 at 9:13 am
    Reply

    cool. My windows 10 VM used to get stuck and I had to manually restart it. This helps now. Thanks

  10. Wiktor said on October 28, 2017 at 4:14 am
    Reply

    Thank you it helped me a lot

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.