i register my file extension in windows with "ftype" and "assoc", this works. now i have the bad looking default icon, how can i change this icon??
我在Windows中使用“ftype”和“assoc”注册我的文件扩展名,这是有效的。现在我有看起来很糟糕的默认图标,我怎么能改变这个图标?
1 个解决方案
#1
HKEY_CLASSES_ROOT\.[extension]
default key contains a REG_SZ
string, that is the name of the next key:
HKEY_CLASSES_ROOT \。[extension]默认键包含一个REG_SZ字符串,即下一个键的名称:
HKEY_CLASSES_ROOT\[that_string]\DefaultIcon
default key ("@") contains this: [path_to_icon_file],[zero_based_index]
HKEY_CLASSES_ROOT \ [that_string] \ DefaultIcon默认密钥(“@”)包含:[path_to_icon_file],[zero_based_index]
Example:
HKEY_CLASSES_ROOT\.txt
@="MyTextFile"
HKEY_CLASSES_ROOT\MyTextFile\DefaultIcon
@="C:\WINDOWS\explorer.exe,2"
This way, all .txt files will use the third icon from the Explorer executable.
这样,所有.txt文件都将使用Explorer可执行文件中的第三个图标。
#1
HKEY_CLASSES_ROOT\.[extension]
default key contains a REG_SZ
string, that is the name of the next key:
HKEY_CLASSES_ROOT \。[extension]默认键包含一个REG_SZ字符串,即下一个键的名称:
HKEY_CLASSES_ROOT\[that_string]\DefaultIcon
default key ("@") contains this: [path_to_icon_file],[zero_based_index]
HKEY_CLASSES_ROOT \ [that_string] \ DefaultIcon默认密钥(“@”)包含:[path_to_icon_file],[zero_based_index]
Example:
HKEY_CLASSES_ROOT\.txt
@="MyTextFile"
HKEY_CLASSES_ROOT\MyTextFile\DefaultIcon
@="C:\WINDOWS\explorer.exe,2"
This way, all .txt files will use the third icon from the Explorer executable.
这样,所有.txt文件都将使用Explorer可执行文件中的第三个图标。