1. 新建一个文本文件“1.txt”
2. 在“1.txt”中添加如下代码,并保存:
Windows Registry Editor Version 5.00 ; Change Extension's File Type [HKEY_CURRENT_USERSoftwareClasses.jpg] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_CURRENT_USERSoftwareClasses.jpeg] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_CURRENT_USERSoftwareClasses.gif] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_CURRENT_USERSoftwareClasses.png] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_CURRENT_USERSoftwareClasses.bmp] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_CURRENT_USERSoftwareClasses.tiff] @="PhotoViewer.FileAssoc.Tiff" ; Change Extension's File Type [HKEY_CURRENT_USERSoftwareClasses.ico] @="PhotoViewer.FileAssoc.Tiff"
3. 修改“1.txt”为“1.reg”
4. 双击运行“1.reg”