What it does ------------ wordcnv allows you to convert documents to whatever format Word can convert them to/from. It uses the converters that MS Office uses. How to use ---------- wordcnv uses the converter dll's from Microsoft Office. A few are already included in a standard Windows 98 installation; Wordpad relies on them. Usually they can be found in: C:\Program Files\Common Files\Microsoft Shared\Textconv\ The dll's have the extension .cnv -- but really they are just regular dll files with a different extension. wordcnv looks in this location per default for the converter dll's. If they are in a different location you can specify that by setting the WORDCNV_DIR environment. Note that the converters all convert from or to rtf; probably rtf is internally the de-facto standard, but this is too easy too parse on non-Microsoft operating systems, so it seems likely that the binary Word formats exist simple to make sure people will have to use Word (it's all part of the plan for world domination!). If you convert Word to html, really the converters will first convert Word into rtf, and then into html. I recommend installing the MS Office 2000 Converter Pack: http://www.microsoft.com/office/ork/2000/appndx/toolbox.htm#convpack You can list the available converters with wordcnv -l (or --list), should look like this: C:\WINDOWS>wordcnv -l Import filters: Filename Class Description Extensions HTML32.CNV HTML HTML Document htm html htx otm MSWRD832.CNV MSWord8 Word 97 doc MSWRD632.WPC MSWord6 Word 6.0/95 for Windows&Macintosh doc MSWRD632.WPC MSWordJ6 Word (Asian Versions) 6.0/95 doc WRITE32.WPC MSWinWrite Windows Write wri WNWRD232.CNV MSWordWin2 Word 2.x voor Windows doc LOTUS32.CNV Lotus123 Lotus 1-2-3 wk1 wk3 wk4 MACWRD32.CNV MSWordMac Word 4.x - 5.x voor de Macintosh mcw MSWRD632.CNV MSWord6 Word 6.0/95 voor Windows&Macintosh doc MSWRD632.CNV MSWordJ6 Word (Aziatische versies) 6.0/95 doc RECOVR32.CNV Recover Tekst uit een bestand herstellen * TXTLYT32.CNV Tekst met opmaak Tekst met opmaak ANS TXTLYT32.CNV MS-DOS-tekst met opmaak MS-DOS-tekst met opmaak ASC EXCEL32.CNV MSBiff Microsoft Excel-werkblad xls xlw xl5 WORKS432.CNV MSWorksWin4 Works voor Windows 4.0 wps WORKS432.CNV MSWorksWin4 Works voor Windows 4.0 wps WPFT532.CNV WrdPrfctDos WordPerfect 5.x doc WPFT632.CNV WordPerfect6x WordPerfect 6.x - 7.0 wpd doc AMI332.CNV Ami Pro 3.0 Ami Pro 3.0 SAM DBASE32.CNV FoxPro FoxPro / dBASE dbf DOSWRD32.CNV MSWordDos Word 3.x - 5.x for MS-DOS doc DOSWRD32.CNV MSWordDos6 Word 6.0 for MS-DOS doc WORKS332.CNV MSWorksWin3 Works for Windows 3.0 wps WORKS332.CNV MSWorksWin3 Works for Windows 3.0 wps RFTDCA32.CNV RFTDCA RFT-DCA rft WRITE32.CNV MSWinWrite Windows Write wri WPFT432.CNV WordPerfect 4.2 WordPerfect 4.2 DOC WPFT432.CNV WordPerfect 4.1 WordPerfect 4.1 DOC Export filters: Filename Class Description Extensions HTML32.CNV HTML HTML Document htm html htx WRITE32.WPC MSWinWrite30 Windows Write 3.0 wri WRITE32.WPC MSWinWrite31 Windows Write 3.1 wri WNWRD232.CNV MSWordWin2 Word 2.x voor Windows doc MACWRD32.CNV MSWordMac4 Word 4.0 voor de Macintosh mcw MACWRD32.CNV MSWordMac5 Word 5.0 voor de Macintosh mcw MACWRD32.CNV MSWordMac51 Word 5.1 voor de Macintosh mcw TXTLYT32.CNV Tekst met opmaak Tekst met opmaak ANS TXTLYT32.CNV MS-DOS-tekst met opmaak MS-DOS-tekst met opmaak ASC WORKS432.CNV MSWorksWin4 Works voor Windows 4.0 wps WORKS432.CNV MSWorksWin4 Works voor Windows 4.0 wps WPFT532.CNV WrdPrfctDos50 WordPerfect 5.0 doc WPFT532.CNV WrdPrfctDos51 WordPerfect 5.1 voor MS-DOS doc WPFT532.CNV WrdPrfctWin WordPerfect 5.x voor Windows doc WPFT532.CNV WrdPrfctDat WordPerfect 5.1 of 5.2 secundair bestand doc WPFT532.CNV WrdPrfctDat50 WordPerfect 5.0 secundair bestand doc WRD6ER32.CNV MSWord6RTFExp Word 97-2000 & 6.0/95 - RTF doc WRD6EX32.CNV MSWord6Exp Word 6.0/95 doc AMI332.CNV Ami Pro 3.0 Ami Pro 3.0 SAM DOSWRD32.CNV MSWordDos Word 3.x - 5.x for MS-DOS doc DOSWRD32.CNV MSWordDos6 Word 6.0 for MS-DOS doc WORKS332.CNV MSWorksWin3 Works for Windows 3.0 wps WORKS332.CNV MSWorksWin3 Works for Windows 3.0 wps RFTDCA32.CNV RFTDCA RFT-DCA rft WRITE32.CNV MSWinWrite30 Windows Write 3.0 wri WRITE32.CNV MSWinWrite31 Windows Write 3.1 wri WPFT432.CNV WordPerfect 4.2 WordPerfect 4.2 DOC WPFT432.CNV WordPerfect 4.1 WordPerfect 4.1 DOC You can identify a file with wordcnv -d file You can convert a file with wordcnv -x CLASS --i CLASS file.in file.out If "-i CLASS" is omitted, the class is autodetected. The default export is RTF, so if -x CLASS is omitted, RTF is outputted. Use the class from the list obtained from wordcnv -l. Documentation from Microsoft ---------------------------- Documentation on the API of the converters is available in the Microsoft Knowledge base: http://support.microsoft.com/support/kb/articles/Q111/7/16.ASP The most interesting part is the file disk/sdk32.doc. The example code is an ugly kludge, the code of WordPad is much better. This available at the following URL: http://msdn.microsoft.com/code/sample.asp?url=/MSDN-FILES/026/000/096/MsdnCompositeDoc.xml Since this URL doesn't look like it will work in the near future, you can also find from http://msdn.microsoft.com/ MSDN Home > MSDN Code Center > Sample Applications and Reference Architectures > WordPad The interesting part is in multconv.cpp, which you can view directly: http://msdn.microsoft.com/msdn-files/026/000/096/Source%20Files/multconv_cpp.asp