广告

本站里的文章大部分经过自行整理与测试

2016年4月6日星期三

隐藏 'New' context menu 里的 items

https://sourceforge.net/projects/shellnewhandler/
( 需要 Microsoft .NET Framework 3.5 )

这小软件可以帮忙隐藏在 'New' context menu 里不必要的 items
用软件, 也可以用 Notepad 写个 hide.bat, 内容如下 (点击运行即可)

Windows 7 :

REM .bmp
REG COPY HKEY_CLASSES_ROOT\.bmp\ShellNew HKEY_CLASSES_ROOT\.bmp\_ShellNew /s
REG DELETE HKEY_CLASSES_ROOT\.bmp\ShellNew /f
 

REM .contact
REG COPY HKEY_CLASSES_ROOT\.contact\ShellNew HKEY_CLASSES_ROOT\.contact\_ShellNew /s
REG DELETE HKEY_CLASSES_ROOT\.contact\ShellNew /f
 

REM .library-ms
REG COPY HKEY_CLASSES_ROOT\.library-ms\ShellNew HKEY_CLASSES_ROOT\.library-ms\_ShellNew /s
REG DELETE HKEY_CLASSES_ROOT\.library-ms\ShellNew /f
 

REM .rtf
REG COPY HKEY_CLASSES_ROOT\.rtf\ShellNew HKEY_CLASSES_ROOT\.rtf\_ShellNew /s
REG DELETE HKEY_CLASSES_ROOT\.rtf\ShellNew /f
 

REM Briefcase
REG COPY HKEY_CLASSES_ROOT\Briefcase\ShellNew HKEY_CLASSES_ROOT\Briefcase\_ShellNew /s
REG DELETE HKEY_CLASSES_ROOT\Briefcase\ShellNew /f


Windows 10 (用 Command Prompt (Admin), 在里面输入运行 hide.bat) :

REM .bmp
REG COPY HKEY_CLASSES_ROOT\.bmp\ShellNew HKEY_CLASSES_ROOT\.bmp\_ShellNew /s
REG DELETE HKEY_CLASSES_ROOT\.bmp\ShellNew /f


REM .contact

REG COPY HKEY_CLASSES_ROOT\.contact\ShellNew HKEY_CLASSES_ROOT\.contact\_ShellNew /s
REG DELETE HKEY_CLASSES_ROOT\.contact\ShellNew /f

REM .rtf

REG COPY HKEY_CLASSES_ROOT\.rtf\ShellNew HKEY_CLASSES_ROOT\.rtf\_ShellNew /s
REG DELETE HKEY_CLASSES_ROOT\.rtf\ShellNew /f

REM .jnt

REG COPY HKEY_CLASSES_ROOT\.jnt\jntfile\ShellNew HKEY_CLASSES_ROOT\.jnt\jntfile\_ShellNew /s
REG DELETE HKEY_CLASSES_ROOT\.jnt\jntfile\ShellNew /f
 


要恢复的话, 将以上所 ShellNew 改为 _ShellNew, 而 _ShellNew 改为 ShellNew 即可

没有评论:

发表评论