JSI Tip 9700. How can I configure .fax files to open in the Windows Picture and Fax Viewer?


Using REG.EXE, built into Windows XP, Windows Server 2003, and later, or installed on Windows 2000 from the Support Tools folder of of the Windows 2000 CD-ROM, I have scripted OpenFax.bat configure .fax files to open in the Windows Picture and Fax Viewer.

The syntax for using OpenFax.bat is:

OpenFax \\ComputerName

OpenFax.bat contains:


@echo on
if \{%1\}==\{\} @echo Syntax: OpenFax \\ComputerName&goto :EOF
REG ADD %1\HKLM\Software\Classes\.fax /Ve /T REG_SZ /F /D "FaxFile"
REG ADD %1\HKLM\Software\Classes\FaxFile /V EditFlags /T REG_DWORD /F /D 65536
REG ADD %1\HKLM\Software\Classes\FaxFile /V FriendlyTypeName /T REG_EXPAND_SZ /F /D "@%%SystemRoot%%\System32\shimgvw.dll,-306
REG ADD %1\HKLM\Software\Classes\FaxFile /V ImageOptionFlags /T REG_DWORD /F /D 0
REG ADD %1\HKLM\Software\Classes\FaxFile\DefaultIcon /Ve /T REG_SZ /F /D "shimgvw.dll,4"
REG ADD %1\HKLM\Software\Classes\faxfile\shell\open /V MuiVerb /T REG_SZ /F /D "@shimgvw.dll,-550"
REG ADD %1\HKLM\Software\Classes\faxfile\shell\open\command /Ve /T REG_SZ /F /D "rundll32.exe %SystemRoot%\System32\shimgvw.dll,ImageView_Fullscreen \"%%1\"
REG ADD %1\HKLM\Software\Classes\faxfile\shell\open\DropTarget /V Clsid /T REG_SZ /F /D "\{E84FDA7C-1D6A-45F6-B725-CB260C236066\}"
REG ADD %1\HKLM\Software\Classes\faxfile\shell\printto\command /Ve /T REG_SZ /F /D "rundll32.exe %SystemRoot%\System32\shimgvw.dll,ImageView_PrintTo /pt \"%%1\" \"%%2\" \"%%3\" \"%%4\""



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish