Home
Download your own copy of HTML Cleaner today!Prev Page Prev Page
Introduction & Getting Started
Main Window
Optimization Options Dialog
General
Deletions
Replacements
Actions
Batch Tab
File Masks
MS Word HTML
Settings Dialog
General
Timeouts
Search & Replace Dialog
Command Line Support
Troubleshooting
Deep Troubleshooting
Change Log
Support & Feedback
FAQ
License Text
Privacy Policy
Credits
Other products

Command Line Support

HTML Cleaner can be launched from the command line. Below there is a list of all supported command line switches:

SwitchTypeMeaningExample
projectFilenameHTML Cleaner project file to be loaded/project=site.htclnr
logfileFilenameLog file/logfile="log.txt"
trayBooleanAutomatically minimize to tray/tray=true
autostartBooleanAutomatically start optimization process/autostart=true
autocloseBooleanAutomatically self-close when optimization is complete./autoclose=false
autosaveBooleanAutomatically save project on exit/autosave=true
settingsFilenameSupersede the default settings file as defined in the Settings Dialog. The default settings file, %appdata%\HTML Cleaner\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 from the Settings Dialog./oneinstance=false
toolbarhintsBooleanOverride the Show hints on buttons in toolbar parameter from the Settings Dialog./toolbarhints=false
addfileFilename
(Or folder name)
Allows you to set a filename (or a folder name) to be added to the optimization queue. Cannot be combined with any other command line option. Adds the specified file (or folder) to the current list of items to be optimized. If HTML Cleaner is already running, the file (or folder) will appear at the bottom of the optimization items list window. This parameter is used to add files via the Windows Explorer context menu./addfile="C:\documents\doc1.html"

Note that during installation, the program registers system alias HTML_Cleaner.exe for its main executable file. So you can type HTML_Cleaner.exe from any current folder without specifying full path to it.

Examples

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

- optimize files and folders defined in MySite.htclnr, write a log to ConvLog.txt, start the optimization process automatically, close itself after an end of optimization process, automatically minimize to tray on startup, will not exit even if other instances of HTML Cleaner are already running, automatically save project on exit without displaying any confirmation dialogs. MySite.htclnr and ConvLog.txt must be located in the current folder.