Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
如果你想在 Windows 11 右键菜单中加入“打开终端”“用指定程序打开”“复制路径”等命令,同时隐藏或重新排列系统和第三方菜单项,Nilesoft Shell 是一个适合高级用户的开源方案。它通过纯文本 .nss 配置文件扩展 Windows 文件资源管理器的上下文菜单,而不是提供传统的图形化编辑器。
截至 2026 年 8 月 18 日,官方软件下载页显示的版本为 1.9.18。安装包支持 x64、x86 和 ARM64,另有 x64 便携版以及 WinGet、Scoop 和 Chocolatey 安装方式。请以官方当前下载页显示的信息为准。
Nilesoft Shell 能做什么
Nilesoft Shell 不是 Windows 11 自带功能,也不只是一个注册表修改脚本。它作为 Windows File Explorer 扩展运行,用配置文件创建、修改、隐藏、删除和重新组织上下文菜单。
官方文档列出的可处理对象包括文件、文件夹、驱动器、桌面空白区域、回收站、其他命名空间对象以及任务栏。你可以创建级联子菜单、分隔线,设置图标、颜色和显示条件,并按文件类型、扩展名或多选状态决定项目何时出现。详细功能以官方文档为准。
#1 Best Overall
- KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
- EASY SETUP: Experience simple installation with the USB wired connection
- VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
- SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
- FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.
它的主要取舍很明确:自由度和可脚本化程度高,但需要编辑文本配置、理解路径和参数,并自行处理匹配失败或工具冲突。
安装前先做好准备
- 创建系统还原点,或至少备份默认配置文件。
- 准备记事本、Visual Studio Code 等文本编辑器。Nilesoft 官方下载页还列出了配置文件语法高亮和代码片段扩展入口。
- 暂时关闭其他会修改 Explorer 或右键菜单的工具。ExplorerPatcher、StartAllBack 和其他 Shell 扩展工具不一定必然冲突,但同时运行多个此类程序可能造成菜单重复、项目消失或 Explorer 重启。
- 只从官方站点或官方列出的安装渠道下载。
安装通常需要管理员权限,并且安装完成后需要同意重启 Windows File Explorer。Nilesoft Shell 官方列出的兼容系统包括 Windows 7、8、10 和 11,支持 x86、x64 和 ARM64;它不是 Windows 11 专属工具。
安装 Nilesoft Shell
使用官方安装包
打开官方下载页,根据设备架构选择 x64、x86 或 ARM64 安装包。默认安装目录通常是:
C:Program FilesNilesoft Shell
如果你更重视可移植性,也可以选择官方提供的 x64 便携版。但便携版需要正确注册 Shell 扩展,不能只把文件解压后就假定菜单会自动出现。
使用 WinGet
winget install Nilesoft.Shell
卸载时可以使用:
winget uninstall Nilesoft.Shell
官方安装文档说明 WinGet 适用于 Windows 10 1809 及更高版本,Windows 11 通常满足这一条件。
使用 Scoop 或 Chocolatey
scoop install nilesoft-shell
如果 Scoop 找不到清单,可以先添加 Extras bucket:
scoop bucket add extras
便携版或 Scoop 版注册 Shell 时,在提升权限的终端中执行:
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteRank #2
- All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
- Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
- Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
- Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
- Plastic parts in K120 include 51% certified post-consumer recycled plastic*
shell -register -restart
Chocolatey 安装命令为:
choco install nilesoft-shell
安装文档中仍可能保留旧版本号示例。不要把示例中的版本号当成当前版本,具体版本应以 Chocolatey 当前清单或官方下载页为准。
找到并备份 shell.nss
最简单的发现方式来自官方入门文档:
- 在任务栏上按住 Shift 并右键。
- 在出现的 Shell 菜单中进入相关子菜单。
- 点击
directory,打开配置文件所在目录。 - 找到
shell.nss。
默认位置通常是:
C:Program FilesNilesoft Shellshell.nss
编辑前复制一份:
shell.nss
shell.nss.backup
不要直接覆盖唯一的原始配置。若使用便携版或其他安装渠道,实际目录可能不同,应以通过 Shell 菜单打开的目录为准。
添加第一个右键菜单项
先用官方入门示例验证 Shell 是否正常工作:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
item(title='Hello, World!' cmd=msg('Hello @user.name'))
保存后,在桌面空白区域右键,应该能看到该项目。确认基础配置有效后,再添加实际程序。例如:
item(title='打开记事本' cmd='notepad.exe')
如果要调用带空格的完整路径,应使用引号,并按你的实际安装位置修改:
item(
title='打开我的编辑器'
cmd='"C:Program FilesExample Editoreditor.exe"'
)
这是示范配置,不代表每台电脑都有该程序。命令路径、参数、工作目录和权限必须根据目标程序调整。建议先验证一个无参数的简单命令,再逐步加入参数。
Rank #3
- All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
- Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
- Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
- Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
- Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later
保存后关闭已经打开的右键菜单,按住 Ctrl 在桌面空白区域右键以强制重新加载配置。若仍未变化,可在 PowerShell 中执行:
shell -restart
这些重新加载方式和快捷键见官方入门文档。
用子菜单整理多个命令
不要把所有工具平铺在一级菜单中。可以按“开发工具”“终端”或“文件操作”等类别组织。下面是按官方 menu/item 思路编写的示意:
menu(title='开发工具') {
item(title='打开 PowerShell' cmd='powershell.exe')
item(title='打开命令提示符' cmd='cmd.exe')
item(title='打开记事本' cmd='notepad.exe')
}
不同版本的语法细节和可用属性应以配置文档、New Items 和 Examples 页面为准。配置中还可以加入分隔线、图标、颜色和多级菜单。
按对象类型和文件扩展名显示
Nilesoft Shell 可以使用 mode、type 等属性控制菜单项目的出现条件。常见对象类型包括:
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsFile:文件。Directory或Dir:文件夹。Desktop:桌面空白区域。Taskbar:任务栏。Drive、Namespace、Computer和Recyclebin:驱动器及其他系统对象。
mode 可以区分没有选中对象的 none、选中单个对象的 single、多个同类型对象的 multi_unique,以及多个同一扩展名文件的 multi_single。
实际设计时,可以采用这样的逻辑:
- 桌面空白区域显示“打开终端”。
- 选中文件夹时显示“在此处打开 PowerShell”。
- 选中
.png时显示图像处理程序。 - 选中
.exe或.dll时显示开发工具。
扩展名匹配示例包括:
'.exe'
'!.exe'
'.exe|.dll'
它们分别表示只匹配 .exe、排除 .exe,以及匹配 .exe 或 .dll。这里的 find 用于动态菜单中的路径或扩展名条件,与修改既有菜单标题时的 find 不是同一种使用场景。属性细节见官方 Properties 文档。
Rank #4
- Durable and Reliable: This USB keyboard features a curved space bar, spill-resistant design (2), durable keys that can withstand 10 million keystrokes, and sturdy, adjustable tilt legs
- Comfortable, Familiar Typing: You’ll enjoy a comfortable and familiar typing experience thanks to the deep-profile keys and standard layout with full-size F-keys and number pad
- Full-size Sculpted Mouse: The high-definition optical USB mouse puts comfort and control in your hands with smooth, accurate tracking and an ambidextrous shape that feels good hour after hour
- Simple Set-Up: Simply plug the keyboard and mouse into the USB ports on your desktop, laptop, or netbook and you're ready to work; compatible with Windows 7, 8, 10 or later
- Clear and Convenient: The bold, bright white and long-lasting characters make the keys on this PC or laptop keyboard easy to read and extra durable
控制命令的执行方式
常用命令属性包括:
cmd:要执行的命令。args或arg:命令参数。invoke:一次处理整个选择集,或对每个对象分别执行。admin:是否以管理员权限执行。dir:工作目录。window:窗口显示方式。wait:是否等待命令完成。verb:打开、编辑、打印、属性等操作。
invoke = 0 表示对整个选择集执行一次,invoke = 1 表示对每个选中对象分别执行一次。涉及多选文件、引号或复杂参数时,先用单个文件和简单命令测试。
admin = true 只应在确实需要提升权限时使用,例如写入受保护目录或修改系统设置。不要给所有项目默认启用管理员权限,也不要因为菜单项目看起来正常就认为其命令安全。
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →修改、隐藏和删除已有菜单项
Nilesoft Shell 的价值不只在于添加新项目,也在于管理已有菜单。官方 modify 机制通常通过菜单项标题匹配目标:
modify(find = 'copy' image = #00ff00)
modify(find = 'paste' image = #0000ff)
remove(find = '"format"')
可以修改标题、图标、可见性、位置等属性,也可以使用 remove(find = ...) 删除匹配项目。隐藏或禁用的示意写法是:
modify(find = '某个菜单项' vis = Hidden)
modify(find = '某个菜单项' vis = Disable)
modify(find = '某个菜单项' pos = Top)
请把示例标题替换为目标系统实际显示的文本。Hidden 会隐藏项目,Disable 则保留项目但使其不可用;具体可见性值还包括 Normal、Static 和 Label。position/pos 支持 Auto、Middle、Top、Bottom 或整数位置。parent/menu 可把项目移动到其他菜单,separator/sep 可添加分隔线。
标题匹配有一个容易被忽略的限制:英文示例中的 copy、paste 和 format 不一定能匹配中文 Windows 11 中显示的“复制”“粘贴”和“格式化”。菜单标题还可能随应用版本、上下文和系统语言变化。需要限定子菜单时,可结合 in 缩小匹配范围。更多规则见官方 Modify Items 文档。
Free tools Windows power users keep installed
One-click scans. No signup required.
Windows 11 现代菜单与经典菜单
Windows 11 的右键菜单分为现代菜单和传统的“显示更多选项”菜单。Nilesoft Shell 并不保证在所有情况下完全替换 Windows 11 的每一层菜单;实际结果取决于 Shell 是否注册、当前菜单类型、Windows 版本以及其他 Explorer 定制工具。
Best Value
- 7 Unique Backlight Color: 7 Elegant LED backlight with 3 brightness level.
- Easy Setup: Simply insert the 1.2M (4 feet) USB wire into your computer and use the keyboard instantly.
- Ergonomic design: Scissors X structure gives you the comfortable typing experience, low-profile keys offer quiet and comfortable typing.
- Ultra Thin and Light: Compact size (16.7 X 4.5 X 0.24in) and light weight (17.4oz) but provides full size keys, arrow keys, number pad, shortcuts for comfortable typing.
- Package contents: Arteck Backlit USB wired Keyboard, welcome guide, our 24-month warranty and friendly customer service.
官方文档列出的快捷键如下:
- Ctrl:启用 Shell 并重新加载
shell.nss。 - Win:让 Windows 11 现代上下文菜单优先。
- Ctrl + Win:禁用 Shell,并启用经典上下文菜单。
- 右键后再左键:重新加载配置。
安装文档还列出了 -treat 选项,用于控制 Windows 11 上下文菜单的处理方式。它不是一个能自动解决所有菜单差异的通用开关;应结合当前注册状态和 Windows 版本验证效果。
配置不生效时按症状排查
新菜单项没有出现
- 确认文件实际命名为
shell.nss,而不是shell.nss.txt。 - 确认编辑的是实际配置目录中的文件。
- 保存后关闭已打开的菜单,按住 Ctrl 右键桌面或任务栏。
- 执行
shell -restart重启 Shell。 - 暂时换回官方
msg()示例,确认 Shell 本身正常。 - 检查当前是否优先显示了 Windows 11 现代菜单,以及命令路径是否正确。
modify(find=...) 没有效果
优先检查目标标题是否使用了当前系统语言,目标是否位于子菜单中,以及匹配是否过于宽泛或过于严格。第三方软件动态生成的项目、现代菜单与经典菜单的差异,也可能使规则没有命中。
命令无法启动
先在终端中确认程序路径和参数可用,再检查引号、dir、args、invoke 和权限设置。带空格的路径尤其容易出错。
菜单重复、消失或 Explorer 不断重启
先恢复最近一次备份,重新加载配置,并暂时停用其他 Explorer、开始菜单或右键菜单修改工具。不要在多个工具同时接管 Shell 的状态下继续增加规则。
配置彻底出错
关闭右键菜单后,把最近修改的 .nss 文件移出配置目录或恢复备份,再执行:
shell -restart
如果仍需完全停止集成,可使用 shell -unregister -restart 注销 Shell。
卸载与恢复
安装版可以在安装目录中运行 unst000.exe 或 unstall.exe,按提示卸载并同意重启 Windows File Explorer。实际文件名可能随安装包变化,应以安装目录中的卸载程序为准。
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →便携版或 Scoop 版可在提升权限的 PowerShell 中执行:
shell -unregister -restart
卸载前关闭 Explorer 窗口,有助于减少残留进程或需要额外重启的情况。完整安装、注册和卸载说明见官方安装文档。
Nilesoft Shell 是否适合你
| 你的需求 | 建议 |
|---|---|
| 需要大量自定义、条件显示和脚本化命令 | 适合使用 Nilesoft Shell |
| 只想通过图形界面点选菜单 | 谨慎选择,它的核心工作流是编辑文本配置 |
| 只想恢复传统右键菜单 | 可考虑更专门的菜单恢复工具 |
| 已经运行多个 Explorer 定制工具 | 先停用其他工具,单独验证兼容性 |
| 需要企业级集中部署或官方技术支持 | 不要只依赖社区配置和个人维护 |
Nilesoft Shell 官方将其定位为免费、开源、轻量且可便携的上下文菜单管理器,并声明可用于个人和商业用途。这些声明适用于 Nilesoft Shell 本身,不代表你加入的第三方脚本、图标资源或调用的软件也都免费或安全。对于愿意阅读文档、维护配置并接受调试成本的用户,它比一次性的注册表技巧更灵活;对于只求简单恢复旧菜单的用户,则可能显得过于复杂。
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Recommended Free Tools

