在桌面右键菜单添加【切换电源计划】选项

2019-07-13 21:16发布

这里写图片描述
这里写图片描述

将下面的代码保存为.reg文件,双击运行即可。 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTDesktopBackgroundShellSwitch Power Plan] "Icon"="powercpl.dll" "MUIVerb"="切换电源计划" "Position"="Top" "SubCommands"="" [HKEY_CLASSES_ROOTDesktopBackgroundShellSwitch Power PlanShellBalanced] "MUIVerb"="平衡" "Icon"="powercpl.dll" [HKEY_CLASSES_ROOTDesktopBackgroundShellSwitch Power PlanShellBalancedCommand] @="powercfg.exe /S 381b4222-f694-41f0-9685-ff5bb260df2e" [HKEY_CLASSES_ROOTDesktopBackgroundShellSwitch Power PlanShellHigh Performance] "MUIVerb"="高性能" "Icon"="powercpl.dll" [HKEY_CLASSES_ROOTDesktopBackgroundShellSwitch Power PlanShellHigh PerformanceCommand] @="powercfg.exe /S 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c" [HKEY_CLASSES_ROOTDesktopBackgroundShellSwitch Power PlanShellPower Saver] "MUIVerb"="节能" "Icon"="powercpl.dll" [HKEY_CLASSES_ROOTDesktopBackgroundShellSwitch Power PlanShellPower SaverCommand] @="powercfg.exe /S a1841308-3541-4fab-bc81-f71556f20b4a"
如果想删除这个菜单的话,同理使用下面这段代码。 Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOTDesktopBackgroundShellSwitch Power Plan] ;HKEY前面加了一个-号代表删除这一项(这是一条以分号开头的注释,不影响代码运行)