批处理 设置windows图片和传真查看器为默认图片浏览器

来源:百度知道 编辑:UC知道 时间:2024/06/24 14:51:18
我下面有50台机子,我想把原来的ACDSEE看图软件删了,然后把图片默认浏览指向Windows自带的图片浏览器?
该如何写批处理!!
悬赏10分,谢谢了
可以是可以了,但是还是要手动选择打开方式。就是,当按你的运行一变批处理后,我双击打开图片时还会弹出要无选择程序来打开图片,当选好后以后就不用选了。
我想能不能把我刚刚说的那一步也给剩了呢?

assoc .jpg=jpegfile
ftype jpegfile=rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %%1
assoc .bmp=bmpfile
ftype bmpfile=rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %%1
assoc .TIFF=TIFFfile
ftype TIFFfile=rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %%1
assoc .PNG=PNGfile
ftype PNGfile=rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %%1
assoc .GIF=GIFfile
ftype GIFfile=rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %%1
@pause
试试上面这个

我想了想,其实没那么复杂,改成这样应该就行了

@echo off
reg add HKEY_CLASSES_ROOT\jpegfile\shell\open\command /ve /t REG_SZ /d "rundll32.exe %systemroot%\system32\shimgvw.dll,ImageView_Fullscreen %%1" /f
reg add HKEY_CLASSES_ROOT\JPG文件\shell\open\command /ve /t REG_SZ /d "rundll32.ex