Home
Download your own copy of Doc To HTML Converter today!Prev Page Prev Page
Introduction
Using DocToHtml
Getting Started
Conversion Options Dialog
General
Output Filenames
Template Data Editor
Images
Meta Tags
CSS
Advanced
JavaScript
HTML Code
Font Attr
Paragraph Attr
List Attr
Table Attr
Text Boxes
Body & Footer
Footnotes & Endnotes Options
HTML Template
XML & Charset & PG
Browsers
Search & Replace
Batch
Filemasks
Progress Form
Batch Converter
Main Window
Settings Dialog
General
Memory
Timeouts
Command Line Support
Search & Replace Dialog
Installation Issues
Uninstallation Issues
Crash Recovery
Support for 64-Bit MS Word
Troubleshooting
Common Issues
Deep Troubleshooting
Registration Benefits
How to Buy
Support & Feedback
FAQ
How to Speed up the Conversion
Unsupported Formatting
License Agreement
Privacy Policy
Change Log
Credits
Other Products

Command Line Support

You can launch the DocToHtml batch converter from the command line. Here’s a list of all supported command line switches:
SwitchTypeMeaningExample
projectFilenameDocToHtml project file to be loaded./project=site.dsj
logfileFilenameLog file./logfile="log.txt"
trayBooleanAutomatically minimize to tray./tray=true
autostartBooleanAutomatically start conversion./autostart=true
autocloseBooleanAutomatically self-close when conversion is complete./autoclose=false
autosaveBooleanAutomatically save project on exit./autosave=true
settingsFilenameSupersede the default settings file. The default settings file %appdata%\DocToHtml\settings.ini is used only when there are no command line parameters, or when there is only one command line parameter, project./settings=settings.ini
oneinstanceBooleanOverride the Allow only one program instance parameter/oneinstance=false
toolbarhintsBooleanOverride the Show hints on buttons in toolbar parameter./toolbarhints=false
addfileFilename
(Or folder name)
Lets you specify a filename (or a folder name) to be added to the conversion queue. Cannot be combined with any other command line option. Adds the specified file (or folder) to the current list of items to be converted. If the DocToHtml stand-alone batch converter is already running, the file (or folder) will appear at the bottom of the conversion items list window. This parameter is used to add files via the Windows Explorer context menu./addfile="C:\documents\doc1.doc"

Note that DocToHtml registers the DocToHtml.exe system alias for its main executable file during installation, so that you can just type DocToHtml.exe from any current folder without entering the full path.

Examples

DocToHtml.exe /project="MySite.dsj" /logfile="ConvLog.txt"
     /autostart=true /autoclose=true /tray=true /oneinstance=false /autosave=true

When launched with the above command line parameters, the program will convert the files and folders specified in MySite.dsj, write a log to ConvLog.txt, start the conversion automatically, self-close when the conversion is complete, automatically minimize itself to the tray on startup, will not exit even if other instances of DocToHtml are already running, and will automatically save the project on exit without displaying any confirmation dialogs. Note that the MySite.dsj and ConvLog.txt files must be located in the current folder.