本帖最后由 kingshui 于 2017-8-24 11:13 编辑
http://www.cnblogs.com/kingmoon/archive/2011/04/25/2028812.html
仅供参考,
我想楼主所有东西都齐全了,只差个注册表关联而已,上面的连接看下吧。
以下注册表右键内容只在vhd文件上存在
- Windows Registry Editor Version 5.00
- [HKEY_CLASSES_ROOT\.vhd]
- @="Windows.VhdFile"
- [HKEY_CLASSES_ROOT\Windows.VhdFile]
- @="Disc Image File"
- "FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
- 00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
- 32,00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,\
- 00,2c,00,2d,00,33,00,31,00,34,00,37,00,35,00,00,00
- [HKEY_CLASSES_ROOT\Windows.VhdFile\DefaultIcon]
- @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
- 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6d,00,\
- 61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,\
- 00,32,00,00,00
- [HKEY_CLASSES_ROOT\Windows.VhdFile\shell]
- [HKEY_CLASSES_ROOT\Windows.VhdFile\shell\mount]
- @="挂载vhd(x)"
- "Icon"="imageres.dll,-32"
- [HKEY_CLASSES_ROOT\Windows.VhdFile\shell\mount\command]
- @="你的命令"
- [HKEY_CLASSES_ROOT\Windows.VhdFile\shell\ummount]
- @="卸载vhd(x)"
- "Icon"="imageres.dll,-32"
- [HKEY_CLASSES_ROOT\Windows.VhdFile\shell\ummount\command]
- @="你的命令"
复制代码 |