右键菜单添加程序,指定图标, 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"
作 者:imsoft
Email:imsofter#163.com
出处:http://www.cnblogs.com/imsoft/
本文版权归作者和博客园共有,欢迎转载、交流,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接。如果觉得本文对您有益,欢迎点赞、欢迎探讨。本博客来源于互联网的资源,若侵犯到您的权利,请联系博主予以删除。