在桌面右键添加菜单

一个批处理文件:

@echo off
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}\InProcServer32
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}\InProcServer32 /ve /t reg_expand_sz /d %SystemRoot%\system32\shdocvw.dll /f
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}\Instance
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}\Instance /v CLSID /t reg_sz /d {3f454f0e-42ae-4d7c-8ea3-328250d6e272} /f
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}\Instance\InitPropertyBag
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}\Instance\InitPropertyBag /v Param1 /t reg_sz /d "D:\Program Files\NetSarang\Xmanager Enterprise 3\Xshell.exe" /f
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}\Instance\InitPropertyBag /v command /t reg_sz /d "Xmanager" /f
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}\Instance\InitPropertyBag /v method /t reg_sz /d ShellExecute /f
reg add HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000002}\Instance\InitPropertyBag /v CLSID /t reg_sz /d {13709620-C279-11CE-A49E-444553540000} /f
reg add HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\{00000000-0000-0000-0000-000000000002}
CLS
color 2e
echo 键值添加成功,请到桌面点击右键查看效果

D:\Program Files\NetSarang\Xmanager Enterprise 3\Xshell.exe是要执行的程序路径

Xmanager是右键显示的内容
参考:start http://blog.sina.com.cn/lingchunjun

posted @ 2010-12-15 19:51  子皿木公  阅读(543)  评论(0编辑  收藏  举报