JSI Tip 9360. How can I remove the New menu when right-clicking the desktop?

If you wish to remove the New menu from the context menu that appears when you right-click an empty area of the desktop, you can run NoNew.bat, locally, or in a startup script.

NoNew.bat contains:

@echo off
setlocal
set regfle="%TEMP%\NoNew_%RANDOM%.TMP"
(
@echo REGEDIT4
@echo.
@echo \[HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\New\]
@echo @=-
@echo.
@echo.
)>%regfle%
regedit /s %regfle%
del /q %regfle%
endlocal
I you wish to subsequently restore the new menu, run YesNew.bat.

YesNew.bat contains:

@echo off
setlocal
set regfle="%TEMP%\YesNew_%RANDOM%.TMP"
(
@echo REGEDIT4
@echo.
@echo \[HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\New\]
@echo @="\{D969A300-E7FF-11d0-A93B-00A0C90F2719\}"
@echo.
@echo.
)>%regfle%
regedit /s %regfle%
del /q %regfle%
endlocal



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish