slyfox1186

Add_Restart_Explorer_Context_Menu.reg

May 14th, 2021 (edited)
1,044
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Windows Registry Editor Version 5.00
  2.  
  3. ; Add Restart Explorer Context Menu Entry
  4.  
  5. ; Created by: SlyFox1186
  6. ; Profile: https://pastebin.com/u/slyfox1186
  7.  
  8. ; This script will create multiple context menu entries that will allow you
  9. ; to restart all running instances of "explorer.exe" then reopen it to
  10. ; the active file or folder the menu was triggered from.
  11.  
  12. ; Save this using a .reg extension and run it as an administrator.
  13.  
  14. ; The expanded "hex(2)" strings commands are shown above each entry
  15. ; to help with comparison and understanding.
  16.  
  17. ; Related Files:
  18. ; Add Restart Explorer Hidden = https://pastebin.com/gcE4PDjM
  19. ; Remove All Entries = https://pastebin.com/W9A9Lbyz
  20.  
  21. ; START SCRIPT
  22.  
  23. ; [ * ]
  24.  
  25. ; CMD /D /C "FOR %%G IN ("%CD%") DO TASKKILL /F /IM explorer.exe && START EXPLORER && EXPLORER "%%~dpG""
  26.  
  27. [HKEY_CLASSES_ROOT\*\Shell\RestartExplorer]
  28. @="Restart Explorer"
  29. "HasLUAShield"=""
  30. "Position"="Middle"
  31. "Extended"=-
  32. [HKEY_CLASSES_ROOT\*\shell\RestartExplorer\command]
  33. @=hex(2):43,00,4D,00,44,00,20,00,2F,00,44,00,20,00,\
  34.   2F,00,43,00,20,00,22,00,46,00,4F,00,52,00,20,00,25,00,25,00,47,00,20,00,\
  35.   49,00,4E,00,20,00,28,00,22,00,25,00,43,00,44,00,25,00,22,00,29,00,20,00,\
  36.   44,00,4F,00,20,00,54,00,41,00,53,00,4B,00,4B,00,49,00,4C,00,4C,00,20,00,\
  37.   2F,00,46,00,20,00,2F,00,49,00,4D,00,20,00,65,00,78,00,70,00,6C,00,6F,00,\
  38.   72,00,65,00,72,00,2E,00,65,00,78,00,65,00,20,00,26,00,26,00,20,00,53,00,\
  39.   54,00,41,00,52,00,54,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,\
  40.   52,00,20,00,26,00,26,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,\
  41.   52,00,20,00,22,00,25,00,25,00,7E,00,64,00,70,00,47,00,22,00,22,00,00,00
  42.  
  43.  
  44. ; [ DESKTOPBACKGROUND ]
  45.  
  46. ; CMD /D /C "FOR %%G IN ("%%1") DO TASKKILL /F /IM explorer.exe && START EXPLORER && EXPLORER "%%~dpG""
  47.  
  48. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\RestartExplorer]
  49. @="Restart Explorer"
  50. "HasLUAShield"=""
  51. "Position"="Middle"
  52. "Extended"=-
  53. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\RestartExplorer\command]
  54. @=hex(2):43,00,4D,00,44,00,20,00,2F,00,44,00,20,00,\
  55.   2F,00,43,00,20,00,22,00,46,00,4F,00,52,00,20,00,25,00,25,00,47,00,20,00,\
  56.   49,00,4E,00,20,00,28,00,22,00,25,00,25,00,31,00,22,00,29,00,20,00,44,00,\
  57.   4F,00,20,00,54,00,41,00,53,00,4B,00,4B,00,49,00,4C,00,4C,00,20,00,2F,00,\
  58.   46,00,20,00,2F,00,49,00,4D,00,20,00,65,00,78,00,70,00,6C,00,6F,00,72,00,\
  59.   65,00,72,00,2E,00,65,00,78,00,65,00,20,00,26,00,26,00,20,00,53,00,54,00,\
  60.   41,00,52,00,54,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,52,00,\
  61.   20,00,26,00,26,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,52,00,\
  62.   20,00,22,00,25,00,25,00,7E,00,64,00,70,00,47,00,22,00,22,00,00,00
  63.  
  64.  
  65. ; [ DIRECTORY\BACKGROUND ]
  66.  
  67. ; CMD /D /C "FOR %%G IN ("%%1") DO TASKKILL /F /IM explorer.exe && START EXPLORER && EXPLORER "%%~dpG""
  68.  
  69. [HKEY_CLASSES_ROOT\Directory\Background\shell\RestartExplorer]
  70. @="Restart Explorer"
  71. "HasLUAShield"=""
  72. "Position"="Middle"
  73. "Extended"=-
  74. [HKEY_CLASSES_ROOT\Directory\Background\shell\RestartExplorer\command]
  75. @=hex(2):43,00,4D,00,44,00,20,00,2F,00,44,00,20,00,\
  76.   2F,00,43,00,20,00,22,00,46,00,4F,00,52,00,20,00,25,00,25,00,47,00,20,00,\
  77.   49,00,4E,00,20,00,28,00,22,00,25,00,25,00,31,00,22,00,29,00,20,00,44,00,\
  78.   4F,00,20,00,54,00,41,00,53,00,4B,00,4B,00,49,00,4C,00,4C,00,20,00,2F,00,\
  79.   46,00,20,00,2F,00,49,00,4D,00,20,00,65,00,78,00,70,00,6C,00,6F,00,72,00,\
  80.   65,00,72,00,2E,00,65,00,78,00,65,00,20,00,26,00,26,00,20,00,53,00,54,00,\
  81.   41,00,52,00,54,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,52,00,\
  82.   20,00,26,00,26,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,52,00,\
  83.   20,00,22,00,25,00,25,00,7E,00,64,00,70,00,47,00,22,00,22,00,00,00
  84.  
  85.  
  86. ; [ DIRECTORY ]
  87.  
  88. ; CMD /D /C "FOR %%G IN ("%%1") DO TASKKILL /F /IM explorer.exe && START EXPLORER && EXPLORER "%%~dpG""
  89.  
  90. [HKEY_CLASSES_ROOT\Directory\Shell\RestartExplorer]
  91. @="Restart Explorer"
  92. "HasLUAShield"=""
  93. "Position"="Middle"
  94. "Extended"=-
  95. [HKEY_CLASSES_ROOT\Directory\Shell\RestartExplorer\command]
  96. @=hex(2):43,00,4D,00,44,00,20,00,2F,00,44,00,20,00,\
  97.   2F,00,43,00,20,00,22,00,46,00,4F,00,52,00,20,00,25,00,25,00,47,00,20,00,\
  98.   49,00,4E,00,20,00,28,00,22,00,25,00,25,00,31,00,22,00,29,00,20,00,44,00,\
  99.   4F,00,20,00,54,00,41,00,53,00,4B,00,4B,00,49,00,4C,00,4C,00,20,00,2F,00,\
  100.   46,00,20,00,2F,00,49,00,4D,00,20,00,65,00,78,00,70,00,6C,00,6F,00,72,00,\
  101.   65,00,72,00,2E,00,65,00,78,00,65,00,20,00,26,00,26,00,20,00,53,00,54,00,\
  102.   41,00,52,00,54,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,52,00,\
  103.   20,00,26,00,26,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,52,00,\
  104.   20,00,22,00,25,00,25,00,7E,00,64,00,70,00,47,00,22,00,22,00,00,00
  105.  
  106.  
  107. ; [ DRIVE ]
  108.  
  109. ; CMD /D /C "FOR %%G IN ("%0") DO TASKKILL /F /IM explorer.exe && START EXPLORER && EXPLORER "%%~dpG""
  110.  
  111. [HKEY_CLASSES_ROOT\Drive\shell\RestartExplorer]
  112. @="Restart Explorer"
  113. "HasLUAShield"=""
  114. "Position"="Middle"
  115. "Extended"=-
  116. [HKEY_CLASSES_ROOT\Drive\shell\RestartExplorer\command]
  117. @=hex(2):43,00,4D,00,44,00,20,00,2F,00,44,00,20,00,\
  118.   2F,00,43,00,20,00,22,00,46,00,4F,00,52,00,20,00,25,00,25,00,47,00,20,00,\
  119.   49,00,4E,00,20,00,28,00,22,00,25,00,30,00,22,00,29,00,20,00,44,00,4F,00,\
  120.   20,00,54,00,41,00,53,00,4B,00,4B,00,49,00,4C,00,4C,00,20,00,2F,00,46,00,\
  121.   20,00,2F,00,49,00,4D,00,20,00,65,00,78,00,70,00,6C,00,6F,00,72,00,65,00,\
  122.   72,00,2E,00,65,00,78,00,65,00,20,00,26,00,26,00,20,00,53,00,54,00,41,00,\
  123.   52,00,54,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,52,00,20,00,\
  124.   26,00,26,00,20,00,45,00,58,00,50,00,4C,00,4F,00,52,00,45,00,52,00,20,00,\
  125.   22,00,25,00,25,00,7E,00,64,00,70,00,47,00,22,00,22,00,00,00
  126.  
  127.  
RAW Paste Data