批处理文件诉诸Windows照片查看器[关闭]

lmvvr0a8  于 2023-05-30  发布在  Windows
关注(0)|答案(1)|浏览(212)

**已关闭。**此问题为not about programming or software development。目前不接受答复。

这个问题似乎不是关于a specific programming problem, a software algorithm, or software tools primarily used by programmers的。如果你认为这个问题与another Stack Exchange site的主题有关,你可以留下评论,解释在哪里可以回答这个问题。
15小时前关门了。
Improve this question
Windows 10.微软不断删除默认的照片查看器,我已经设置为Windows照片查看器。是否有可恢复此设置的批处理文件?

polhcujo

polhcujo1#

批处理文件修改必要的注册表值,以将Windows照片查看器设置为各种图像文件扩展名(例如,.bmp.jpg.png)的默认照片查看器。运行批处理文件后,Windows照片查看器应恢复为这些文件类型的默认照片查看器。

@echo off

REM Restoring Windows Photo Viewer as the default photo viewer

REM Set the necessary registry values for Windows Photo Viewer
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.Bitmap" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dib\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.Bitmap" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.gif\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.GIF" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpeg\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.JFIF" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.JFIF" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpe\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.JFIF" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jfif\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.JFIF" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.Png" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.tif\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.tiff\UserChoice" /v Progid /d "PhotoViewer.FileAssoc.Tiff" /f

echo Windows Photo Viewer has been restored as the default photo viewer.

pause

相关问题