0.举个栗子
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Allfilesystemobjects\shell\copypath]
@="Copy as Path"
"Icon"="imageres.dll,-5302"
[HKEY_CLASSES_ROOT\Allfilesystemobjects\shell\copypath\command]
@="mshta vbscript:clipboarddata.setdata(\"text\",\"%1\")(close)"
解释:
Windows Registry Editor Version 5.00
不可省略,要求window的最低版本号
[HKEY_CLASSES_ROOT\songfile\shell\copypath]
进入或创建该路径的项
@="Copy as Path"
//如果命令中没有空格,引号也可以省略
默认字符串值为Copy as Path
"Icon"="imageres.dll,-5302"
创建Icon字符串项,该项的值为"imageres.dll,-5302"