Rob van der Woude's Scripting Pages

Help text for Word2OpenOffice.cs

(view help text of Word2OpenOffice.cs as plain text)

Word2OpenOffice,  Version 1.00
Open a Microsoft Word document and save it in OpenOffice ODT format

Usage:     Word2OpenOffice.exe  "wordfile"  [ Options ]

Where:     wordfile    Word document(s) to be converted (extension ".doc"
                       or ".docx"; wildcard "*" allowed, e.g. "name*.doc*")

Options:   /O          silently Overwrite existing output file(s)
                       (default: abort or skip if output file exists)
           /P          Prompt to overwrite existing output file(s)
                       (default: abort or skip if output file exists)

Notes: [1] This program requires a "regular" (MSI based) Microsoft Word
           (2007 or later) installation, it will fail on an MS Office
           "click-to-run" installation
       [2] The converted output file(s) will have the same name and location
           as the input file(s), with extension ".odt".
       [3] If wildcards are used in the Word file names, and /O or /P switch
           are not used, the program will display an error message in case an
           output file already exists, but it will then continue to convert
           the next file instead of aborting.
       [4] If Word was already active when this program is started, any other
           opened document(s) will be left alone, and only the document(s)
           opened by this program will be closed.

Examples:  Word2OpenOffice.exe "D:\folder\myfile.doc"
           will convert the file and save it to "D:\folder\myfile.odt"

           Word2OpenOffice.exe "D:\folder\*.doc*"
           will convert all matching files and save them to "D:\folder\*.odt"

Written by Rob van der Woude
https://www.robvanderwoude.com

page last uploaded: 2022-10-05; loaded in 0.0046 seconds