右键菜单添加程序,指定图标, Notepad2、Sublime Text 2

时间:2023-03-09 02:46:43
右键菜单添加程序,指定图标, Notepad2、Sublime Text 2

右键添加Sublime Text 打开方式

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Sublime Text]
"Icon"="D:\\Coding\\Sublime Text 2\\sublime_text.exe,0"
@="用Sublime Text &2打开" [HKEY_CLASSES_ROOT\*\shell\Sublime Text\Command]
@="D:\\Coding\\Sublime Text 2\\sublime_text.exe %1"

右键添加Notepad2打开方式

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Notepad2]
@="用&xNotepad2打开"
"Icon"="D:\\System\\Notepad2\\Notepad.exe,0" [HKEY_CLASSES_ROOT\*\shell\Notepad2\command]
@="D:\\System\\Notepad2\\Notepad.exe %1"

右键添加管理员权限

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\zrunas]
@="管理员取得所有权"
"NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\*\shell\zrunas\command]
@="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant administrators:F"