When I run the following code below in a command prompt (as administrator):
\"C:\\Program Files\\Windows Photo Viewer\\PhotoViewer.dll\" \"C:\\00012.tif\"
rundll32 "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" "C:\00012.tif"
For running a dll, there is rundll32
.
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
Windows 7
rundll32 "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen path_to_image