DocTo/pages/all/ConvertDocToFileDOC.md

2.1 KiB

{ "title" : "How do I Convert a Microsoft Word Doc to a Latest Microsoft Office Word 365 Version Format ?" }

How do I Convert a Microsoft Word Doc to a Latest Microsoft Office Word 365 Version Format ?

It is very simple to convert a Word Document to a DOC file on the command line using Docto. You can also do this easily in Microsoft Word, but sometimes it helps to be able to do it from the command line.

The command line below shows how you can convert a Microsoft Word Document to a Latest Microsoft Office Word 365 Version Format file - DOC.

Command Line

docto -WD -f 'c:\path\Document.doc' -o 'c:\path\Document.DOC' -t wdFormatDocumentDefault

or easier to read

docto -WD  -f 'c:\path\Document.doc' 
           -o 'c:\path\Document.DOC' 
           -t wdFormatDocumentDefault

Command Line Explained

  • -WD - This is a conversion using Microsoft Word.
  • -f - The File or directory to be converted
  • -o - The Output File or Directory where you would like the converted file to be written to.
  • -T - The file format type that is being converted to

You can see a list below of other conversion types available.

Some other interesting commands

You might find some of the following commands also interesting.

Other File Types Available for Conversion

The following values below can be used to convert a Word Document to another file type.


wdFormatDOSTextLineBreaks=5
wdFormatEncodedText=7
wdFormatFilteredHTML=10
wdFormatOpenDocumentText=23
wdFormatHTML=8
wdFormatRTF=6
wdFormatStrictOpenXMLDocument=24
wdFormatTemplate=1
wdFormatText=2
wdFormatTextLineBreaks=3
wdFormatUnicodeText=7
wdFormatWebArchive=9
wdFormatXML=11
wdFormatDocument97=0
wdFormatDocumentDefault=16
wdFormatPDF=17
wdFormatTemplate97=1
wdFormatXMLDocument=12
wdFormatXMLDocumentMacroEnabled=13
wdFormatXMLTemplate=14
wdFormatXMLTemplateMacroEnabled=15
wdFormatXPS=18