Procedure: Running "Windows Picture and Fax Viewer" Manually via Command-Line or as a File-Association.

Note: This procedure was developed and tested to work with MS Windows XP.  This technique may work with other Windows versions, but presumably nothing older than MS Windows 2000 Pro (and even Win2K may require a Service Pack from Microsoft in order for this to work.)

To invoke the Picture and Fax Viewer via Command-Line, use the following command form:
  (Note: DO NOT add Quotation Marks to the System-Portion of the Following Command!)

rundll32.exe c:\windows\system32\shimgvw.dll,ImageView_Fullscreen %1

  Highlighted Text  Items in the Above Command Represent Variables, and every var must be adjusted with each individual use of this command.
 
  c:\windows should be replaced with your Windows Installation's Primary Directory (as in %SystemRoot%.)
    %1
represents the system path corresponding to the file you wish to open.
      ANY LITERAL VALUE PLACED HERE SHOULD BE (THE ONLY THING) ENCLOSED IN QUOTATION MARKS.

To Associate Individual File (Mime) Types with the Picture and Fax Viewer within Windows Explorer,
  use the following step-by-step instructions
:

1. Open an Explorer Window, such as My Documents or My Pictures.

2. Click the "Tools" Menu at the top of the Window, then click "Folder Options."

3. A Dialog Box, entitled Folder Options should appear.
    Within this Dialog Box, Click the "File Types" tab.

4. Under Registered File Types, select the File Type you wish to create an Association for.

5. Once you have Chosen a File Type, Click the "Advanced" Button.

6. Within the Resulting Edit File Type Dialog Box, under Actions, either select an existing
    action to modify and click the "Edit" button, or click the "New" Button to Create an
    Additional Action for this File Type.

    Note: If creating a new action, you may choose to make it the default or left-click action
              for this file type.
                                                              
7. In the Resulting Dialog Box, Enter the Following Values:
    
Action: <Whatever You Like, but leave alone if Editing an Existing Action.>
Application Used  to Perform Action: rundll32.exe c:\windows\system32\shimgvw.dll,ImageView_Fullscreen %1
USE DDE: <CHECKED>
DDE Message: <Leave Empty>
Application: shimgvw
DDE Application  Not Running: <BLANK>
Topic: System

  Highlighted Text  Items in the Above Commands Represent Variables, and every var must be adjusted with each individual use of this command.
 
  c:\windows should be replaced with your Windows Installation's Primary Directory (as in %SystemRoot%.)
    %1 gets left as-is in this command-context.  It should NOT be replaced with a literal value here.  WYSIWYG, Really.

< Back to The Basement