|
- :: 任务管理器
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell\X.Taskmgr" /f /v "Icon" /t REG_SZ /d "imageres.dll,-150"
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell\X.Taskmgr" /f /v "MUIVerb" /t REG_SZ /d "任务管理器"
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell\X.Taskmgr\Command" /f /ve /t REG_SZ /d "taskmgr.exerundll32.exe sysdm.cpl,EditEnvironmentVariables"
- :: 本地连接
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell\X.LocalNet" /f /v "Icon" /t REG_SZ /d "shell32.dll,-273"
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell\X.LocalNet" /f /v "MUIVerb" /t REG_SZ /d "本地连接"
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell\X.LocalNet\Command" /f /ve /t REG_SZ /d "ncpa.cpl"
复制代码
需要显示在列表中,就在对应的菜单注册表项"SubCommands"中添加 X.Taskmgr、X.LocalNet(英文分号隔开)
比如把你需要的这两项添加在"系统命令"子菜单中:
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\Shell\X.System.Menu" /f /v "SubCommands" /t REG_SZ /d "X.Taskmgr;X.LocalNet"
复制代码
需要注意的是:用户自建的多级菜单(含子菜单)限制项目总数最大16个,超过的话有些项目不会显示
有需求可以用 Configure FileMenu Tools 这种第三方工具创建更多列表数量的右键菜单 |
|