title: How to run Photoviewer.dll in command line
body: <p>When I run the following code below in a command prompt (as administrator):</p>
  
  <pre><code>"C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" "C:\00012.tif"
  </code></pre>
  
  <p>it produces error as shown below : </p>
  
  <blockquote>
    <p>"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."</p>
  </blockquote>
  
  <p>Both <code>.tif</code> and <code>.tiff</code> are associated in the Default programs control panel.  </p>
  
  <p>I am trying to call this from a .net windows app.</p>
  
  <p>Any help is appreciated.</p>