在Windows 10系统中,通过简单的设置就可以为右键菜单添加一键关机功能,大大提高操作效率。下面介绍3种常用方法:
regedit打开注册表编辑器HKEY_CLASSES_ROOT\Directory\Background\shellShutdown一键关机command的子项shutdown.exe -s -t 0Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\Shutdown] @="一键关机" [HKEY_CLASSES_ROOT\Directory\Background\shell\Shutdown\command] @="shutdown.exe -s -t 0"
shutdown.reg(注意选择所有文件类型)可以使用Context Menu Editor等专业工具来管理右键菜单,这类工具提供图形界面,操作更直观安全。
-t 0表示立即关机,可改为其他数值设置延迟时间Icon字符串值,指定图标路径通过以上任一方法设置完成后,在桌面或文件夹空白处右键点击,就能看到新增的一键关机选项,点击即可快速关机。