|
求助 我想把UI_Shutdown中的关机和重启放到右键,但换了新版的WinXShell后,效果没了,弹不出菜单来,旧版本的20.17是可以的右键菜单注册表导入:
[HKEY_CLASSES_ROOT\Directory\background\shell\Restexplorer]
@="关机或重启"
"Icon"="%windir%\\System32\\SHELL32.dll,27"
"Position"="BOTTOM"
[HKEY_CLASSES_ROOT\Directory\background\shell\Restexplorer\Command]
@="winxshell -ui -jcfg UI_Shutdown\\main.jcfg"
main.jcfg如下:
{
"name":"UI_Shutdown",
"nobaricon":true,
"OnClick":
{
"shutdownbtn":"
PUSH 'shutdown';
PUSH 1;
CALL ::Command();
CALL ::Close();
",
"restartbtn":"
PUSH 'reboot';
PUSH 1;
CALL ::Command();
CALL ::Close();
"
},
"JS_CMD":
{
"reboot": {
"command": "pecmd.exe",
"parameters": "shut r"
},
"shutdown": {
"command": "pecmd.exe",
"parameters": "Shut"
}
}
}
|
|