Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
September 1, 2005
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 onif {%1}=={} @echo Syntax: OpenFax \ComputerName&goto :EOFREG ADD %1HKLMSoftwareClasses.fax /Ve /T REG_SZ /F /D "FaxFile"REG ADD %1HKLMSoftwareClassesFaxFile /V EditFlags /T REG_DWORD /F /D 65536REG ADD %1HKLMSoftwareClassesFaxFile /V FriendlyTypeName /T REG_EXPAND_SZ /F /D "@%%SystemRoot%%System32shimgvw.dll,-306REG ADD %1HKLMSoftwareClassesFaxFile /V ImageOptionFlags /T REG_DWORD /F /D 0REG ADD %1HKLMSoftwareClassesFaxFileDefaultIcon /Ve /T REG_SZ /F /D "shimgvw.dll,4"REG ADD %1HKLMSoftwareClassesfaxfileshellopen /V MuiVerb /T REG_SZ /F /D "@shimgvw.dll,-550"REG ADD %1HKLMSoftwareClassesfaxfileshellopencommand /Ve /T REG_SZ /F /D "rundll32.exe %SystemRoot%System32shimgvw.dll,ImageView_Fullscreen "%%1"REG ADD %1HKLMSoftwareClassesfaxfileshellopenDropTarget /V Clsid /T REG_SZ /F /D "{E84FDA7C-1D6A-45F6-B725-CB260C236066}"REG ADD %1HKLMSoftwareClassesfaxfileshellprinttocommand /Ve /T REG_SZ /F /D "rundll32.exe %SystemRoot%System32shimgvw.dll,ImageView_PrintTo /pt "%%1" "%%2" "%%3" "%%4""
You May Also Like