将下面文字复制到文本文档然后另存为.reg文件并执行

注意 需在用户账号下执行 并需要有管理员权限


Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations]

".tif"="PhotoViewer.FileAssoc.Tiff"

".tiff"="PhotoViewer.FileAssoc.Tiff"

".jpg"="PhotoViewer.FileAssoc.Tiff"

".png"="PhotoViewer.FileAssoc.Tiff"

".gif"="PhotoViewer.FileAssoc.Tiff"


将下面文字复制到文本文档然后另存为.bat文件并执行

注意 需在用户账号下执行 并需要有管理员权限

@Echo Off

Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".tif" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f

Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".tiff" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f

Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpg" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f

Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".png" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f

Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".gif" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f

Exit