REGEDIT4;  This adds the ability to Right-Click on a .dll or .ocx
;  and get the Register / UnRegister options.
;
;  If it doesn't work for you, mail me and tell me about it.
;  Jon Evans <[email protected]>; ==========
; .DLL files
; ==========[HKEY_CLASSES_ROOT\.dll]
"Content Type"="application/x-msdownload"
@="dllfile"[HKEY_CLASSES_ROOT\dllfile]
@="Application Extension"[HKEY_CLASSES_ROOT\dllfile\Shell\注册控件\command]
;[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe \"%1\""[HKEY_CLASSES_ROOT\dllfile\Shell\取消注册控件\command]
;[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""; ==========
; .OCX files
; ==========[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"[HKEY_CLASSES_ROOT\ocxfile]
@="OCX"[HKEY_CLASSES_ROOT\ocxfile\Shell\注册控件\command]
;[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe \"%1\""[HKEY_CLASSES_ROOT\ocxfile\Shell\取消注册控件\command]
;[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""; End加到右键菜单是写注册表的
看看这个注册表就该知道了

解决方案 »

  1.   

    目录为Directory下键值
    驱动器为Driver下键值都可以更改的
      

  2.   

    使用VB做过接口开发的朋友可能去过 http://www.domaindlx.com/e_morcillo/scripts/type/default.asp 这个站点是一个非常全面的Shell扩展开发的vb站点。如何建立Shell Namespaces?如何在桌面以及IE中添加工具条和右键菜单?等等的这些IE扩展开发在这个站点都有。现在斑竹吧整个站点的内容都拉了下来,打包放在这里供大家下载。 http://www.applevb.com/lib/vb_com.zip
      

  3.   

    http://www.csdn.net/Expert/forum.asp?typenum=8&searchKeys=%D7%A2%B2%E1%B1%ED&roomid=2&author=&tabletype=now
      

  4.   

    做右键菜单需要实现IContextMenu接口,VB实现需要一些附加的方法和库,上面的站点镜像中包含完整的实现方法,如果用Delphi或者VC可以直接实现,可以给你Delphi的代码。
      

  5.   

    或者下载这个程序:
    http://www.applevb.com/sourcecode/vbcontextmenu.zip
    利用VB实现Windows外壳扩展中的上下文菜单,参见压缩包中的Readme.txt文件。