How to run Photoviewer.dll in command line

前端 未结 3 790
情话喂你
情话喂你 2020-12-09 09:54

When I run the following code below in a command prompt (as administrator):

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


        
相关标签:
3条回答
  • 2020-12-09 10:36

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

    For running a dll, there is rundll32.

    0 讨论(0)
  • 2020-12-09 10:36

    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
    
    0 讨论(0)
  • 2020-12-09 10:54

    Windows 7

    rundll32 "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen path_to_image
    
    • path_to_image must not be quoted!
    0 讨论(0)
提交回复
热议问题