Deprecated: Hook custom_css_loaded is deprecated since version jetpack-13.5! Use WordPress Custom CSS instead. Jetpack no longer supports Custom CSS. Read the WordPress.org documentation to learn how to apply custom styles to your site: https://wordpress.org/documentation/article/styles-overview/#applying-custom-css in /srv/www/srvfail.com/public_html/wp-includes/functions.php on line 6078
Office Archives ⋆ SysAdminStuff

How to convert batch of doc files to docx, this should also work for ppt and xls files

This is a repost of a post from an old blog, made on July 23, 2012, that used to be on:

http://wp.me/p25nt4-7r

http://adminramble.com/convert-batch-doc-files-docx-work-ppt-xls-files/

Original post:

Today I had to need to convert a bunch of old Office 2003 .doc files to a new Office 2010 .docx, file format, since it was a few hundred files that I had to convert I started looking for a easiest way to do it, after a few minutes of Google search through solutions with using macros I find one that doesn’t require any macros or programming on this blog.

You can do it using Microsoft Office Compatibility Pack and Microsoft Office Migration Planning Manager.

Here are the steps needed for a bulk conversion from .doc to .docx:

  1. Download Microsoft Office Migration Planning Manager (MigrationPlanningManager.exe, 2.7 MB)
  2. Download Microsoft Office Compatibility Pack (FileFormatConverters.exe, 37.0 MB)
  3. Extract Office Planning Manager (OMPM) to some directory (I used d:\doc2docx for example here)
  4. Go to Tools directory where you extracted OMPM (in my case d:\doc2docx\Tools)
  5. edit the ofc.ini file for following lines:
    FullUpgradeOnOpen=1
    fldr='path to directory with .doc files you want to convert'
    DestinationPathTemplate='path to where you want to save converted files'

    Your ofc.ini file should look something like this:

    [Run]
    LogDestinationPath=C:\OMPM\OFCLogs
    
    TimeOut = 300
    
    [ConversionOptions]
    ; FullUpgradeOnOpen: if set to 1, Word documents will be fully converted to the OpenXML format
    ;                    if set to 0 (default), Word documents will be saved in the OpenXML format in compatibility mode
    ; Not applicable to Excel or PowerPoint files.
    FullUpgradeOnOpen=1
    
    CABLogs=1
    
    MacroControl=0
    
    
    [FoldersToConvert]
    fldr=d:\doc2docx\Files2convert
    
    [ConversionInfo]
    SourcePathTemplate=*\*\*\
    DestinationPathTemplate=d:\doc2docx\ConvertedFiles
  6. open command prompt and run ofc.exe from Tools directory (in my case D:\doc2docx\Tools\ofc.exe), you should get a message like this one:
    d:\doc2docx\Tools>ofc
    Microsoft Office File Converter version 12.0.4518.1032
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.
    Automatically converts Office documents to 2007 Microsoft Office system file for
    mat based on settings in the OFC.INI control file.
    Converting files from folder d:\doc2docx\Files2convert
    Converting: d:\doc2docx\Files2convert\4thFile.doc Writing converted file to: d:\
    doc2docx\ConvertedFiles\4thFile(1).docx
    Converting: d:\doc2docx\Files2convert\File1.doc Writing converted file to: d:\do
    c2docx\ConvertedFiles\File1(1).docx
    Converting: d:\doc2docx\Files2convert\FileNo3.doc Writing converted file to: d:\
    doc2docx\ConvertedFiles\FileNo3(1).docx
    Converting: d:\doc2docx\Files2convert\SecondFile.doc Writing converted file to:
    d:\doc2docx\ConvertedFiles\SecondFile(1).docx
    Converting: d:\doc2docx\Files2convert\ThisIsFile5.doc Writing converted file to:
     d:\doc2docx\ConvertedFiles\ThisIsFile5(1).docx
    Start: 2012-07-23 16:05:12
    End: 2012-07-23 16:05:17
    Total time used to convert files (sec): 4
    Total number of files processed: 5
    Total number of files converted: 5
    Conversion Complete.
    d:\doc2docx\Tools>