新建一个TXT文本文档,把以下代码复制粘贴到其中:
注:你可以根据需要按同样的格式增减或修改其中的图片格式代码
Windows Registry Editor Version 5.00
; Change Extension‘s File Type
[HKEY_CURRENT_USER\Software\Classes\.jpg]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension‘s File Type
[HKEY_CURRENT_USER\Software\Classes\.jpeg]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension‘s File Type
[HKEY_CURRENT_USER\Software\Classes\.gif]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension‘s File Type
[HKEY_CURRENT_USER\Software\Classes\.png]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension‘s File Type
[HKEY_CURRENT_USER\Software\Classes\.bmp]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension‘s File Type
[HKEY_CURRENT_USER\Software\Classes\.pcx]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension‘s File Type
[HKEY_CURRENT_USER\Software\Classes\.tiff]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension‘s File Type
[HKEY_CURRENT_USER\Software\Classes\.ico]
@="PhotoViewer.FileAssoc.Tiff"
然后把该文本文档重命名为 Windows_photo_viewer.reg (或任意名称),然后双击运行该 reg 注册表文件把数据导入注册表中即可。
原文:https://www.cnblogs.com/sanduzxcvbnm/p/14637810.html