New
#30
If you just recently installed a Windows Update or updated to a new build of Windows 10, then you may need to re-add the .bat file to the System32 folder again.
Sometimes an update or new build may reset items back to default.
Resetting Windows will of course remove it from System32 as well.
Restart Explorer Context Menu - without .bat file
Code:
Windows Registry Editor Version 5.00
;Restart Explorer
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Explorer]
"icon"="explorer.exe"
"Position"="Top"
"MUIVerb"="Restart Explorer"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Explorer\command]
@=hex(2):63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,63,00,20,00,74,\ 00,61,00,73,00,6b,00,6b,00,69,00,6c,00,6c,00,20,00,2f,00,66,00,20,00,2f,00,\ 69,00,6d,00,20,00,65,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,\ 00,78,00,65,00,20,00,26,00,20,00,64,00,65,00,6c,00,20,00,2f,00,66,00,20,00,\ 2f,00,71,00,20,00,2f,00,61,00,3a,00,68,00,20,00,22,00,25,00,55,00,73,00,65,\ 00,72,00,50,00,72,00,6f,00,66,00,69,00,6c,00,65,00,25,00,5c,00,61,00,70,00,\ 70,00,64,00,61,00,74,00,61,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,5c,00,49,\ 00,63,00,6f,00,6e,00,43,00,61,00,63,00,68,00,65,00,2e,00,64,00,62,00,22,00,\ 20,00,26,00,20,00,73,00,74,00,61,00,72,00,74,00,20,00,65,00,78,00,70,00,6c,\ 00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,65,00,00,00
Last edited by JeWgIeNiJ; 09 Feb 2017 at 06:21.
Then I lay out ready registry file.This method is not only a conductor but resets and clears the cache icon.
RestartExplorer.rar
Last edited by Brink; 10 Feb 2017 at 09:22. Reason: attached uploaded file
Thank you for the idea JeWgIeNiJ. :) I don't want to include the part to clear the icon cache since that's already a separate tutorial, and this tutorial is more for just restarting explorer itself instead.
I have updated the tutorial to have a cascading "Restart Explorer" context menu that includes the "Restart Explorer" now and "Restart Explorer w/ Pause" items so folks can have a choice.
[SPOILER][/SPOILER]
Easy Context Menu v1.6 (EcMenu.exe / EcMenu_x64,exe) from Sordum has the ability to restart explorer and recall the explorer.exe file manager processes that the user was using the moment before explorer.exe was restarted. Doesn't seem to matter how many windows were open. The registry entry calls an argument from the executable EcMenu.exe ("%ProgramFiles%\Easy Context Menu\EcMenu.exe" /ReExplorer) and I'd like to see how this is done. From searching the internet I got mixed results saying it can't be done but obviously it can. I believe he is somehow taking advantage of the 'Folder Options -> View -> Restore previous folder windows at logon' but other than that all I know is he uses nircmd for some of the EcMenu features.
Would you know anything about this?
Is it possible to save the open directory paths to the temp $PATH env var or do they get dumped at explorer.exe reset? Was thinking if I kept the cmd window open then it wouldn't ditch the env var, but then again not sure I can even utilize that for this idea.
Thanks!
P.S. yeah I could e-mail the guy, but this is more fun!
I know I keep saying this, but it can't be said enough. You know what ylu're doing and you do it so well and elegantly. Thank you just for being here.