How to run Photoviewer.dll in command line

北战南征 提交于 2019-11-28 09:12:07
RobinJ

rundll32 "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" "C:\00012.tif"

For running a dll, there is rundll32.

Windows 7

rundll32 "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen path_to_image
  • path_to_image must not be quoted!

It's not necessary to run PhotoViewer directly, let explorer do the work for you. As a bonus, it works with relative paths as far as I can tell.

C:\Users\alphaniner> explorer Documents\test.png
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!