Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Photoviewer.dll in command line

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

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

it produces error as shown below :

"This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an associated in the Default Programs control panel."

Both .tif and .tiff are associated in the Default programs control panel.

I am trying to call this from a .net windows app.

Any help is appreciated.

like image 339
jinsungy Avatar asked May 31 '11 15:05

jinsungy


People also ask

Where is Photo Viewer DLL?

In the dialog, scroll down and click on More apps , then `Look for another app on this PC. Then, at the bottom right, choose All Files (*. *) instead of Programs (*.exe ...) , then navigate to C:\Program Files\Windows Photo Viewer and choose PhotoViewer. dll .

Where is the executable for Windows Photo Viewer?

If You Upgraded From Windows 7/8 If it's not there, click “Choose another app” from the “Open with” menu, then scroll down, click “More apps,” scroll down to the bottom again, click “Look for another app on this PC,” then navigate to “C:Program FilesWindows Photo Viewer” and select the Windows Photo Viewer executable.

How do I open Windows Photo Viewer?

Windows Photo Viewer isn't part of Windows 10, but if you upgraded from Windows 7 or Windows 8.1, you might still have it. To check, press and hold (or right-click) a photo in File Explorer, and select Open with. If Windows Photo Viewer isn't in the list, you cannot install it on Windows 10.


1 Answers

Windows 7

rundll32 "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen path_to_image
  • path_to_image must not be quoted!
like image 52
user362515 Avatar answered Oct 11 '22 14:10

user362515