我一直在尝试添加一个命令来在我的 Windows 7 64 位上处理 PNG 文件:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.png\OpenWithProgids]
"pngfile"=""
[HKEY_CLASSES_ROOT\pngfile\shell\PNGProcess]
@="Process"
[HKEY_CLASSES_ROOT\pngfile\shell\PNGProcess\command]
@="\"C:\\Program Files (x86)\\PNGProcess\\pngproc.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice]
"Progid"="PBrush"
[HKEY_CURRENT_USER\Software\Classes\.png]
@="png_auto_file"
它适用于 Windows XP,但不适用于 64 位 Windows 7。
相同的注册表添加适用HKCR\jpegfile
于该 Windows 7 64 位系统,但HKCR\pngfile
不起作用。
我再次检查以验证这些条目是否确实存在于注册表中的正确位置。他们是这样!
对此感到困惑,我检查了其他将上下文菜单项添加到图形文件扩展名的程序,果然即使使用古老的 GIMP 也存在这个问题!
我试图查找有关 PNG 和 Windows 7 的已知特性的信息,但找不到任何信息。
pngfile
知道Windows 7有什么特别之处吗?
更新:按照以下建议,我在右键单击 .png 文件(访问上下文菜单)时捕获了相关操作,该文件会自动重新创建值png_auto_file
:
4:05:53.3456954 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.3457486 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.3457983 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS
4:05:53.3532997 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.3533494 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.3534160 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS
4:05:53.3605580 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.3606023 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.3606462 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS
4:05:53.3670219 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.3670721 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.3671219 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS
4:05:53.3886634 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.3887094 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.3887554 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS
4:05:53.4146451 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.4146940 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.4147417 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS
4:05:53.7282785 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.7283091 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.7283375 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS
4:05:53.7680034 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.7680323 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.7680595 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS
4:05:53.7848014 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.7848311 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.7848591 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS
4:05:53.8001734 PM Explorer.EXE 2696 RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS Desired Access: Query Value
4:05:53.8002023 PM Explorer.EXE 2696 RegQueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice\Progid SUCCESS Type: REG_SZ, Length: 14, Data: PBrush
4:05:53.8002303 PM Explorer.EXE 2696 RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice SUCCESS