How to convert a HTML Help file (.chm)?
- Launch Chm To Exe and click "Open CHM". You can also drag and drop CHM files directly onto the window. Use the History button to reopen a CHM file you already converted previously.
- Once you have selected the HTML Help file, it is parsed by the program and its contents is displayed in the tree view on the left side. By default, the Summary is displayed:

"Summary" displays some properties read from the HTML Help file. These properties will be used by CHM To Exe to create the HTML Executable project file.
- Choose the "Convert to .EXE" tab or click "Convert it to .exe" under the name of your HTML Help file.
- CHM To Exe already filled in all fields. You can of course modify these fields; first, you need to specify the full path to the HTML Executable project (.hep extension) that should be created.
Hint: use the Browse button to select another location; thus CHM To Exe will prompt you whether you want to automatically update other fields.
Then choose the name of the executable file that will be output by HTML Executable when compiling the project file.
Finally all source files extracted from the HTML Help file must be placed in a folder somewhere on your disk, so HTML Executable can compile them. You have to enter a path to that folder; if the latter does not exist, it will be created. - Click "Convert CHM To HEP". All source files are first extracted to the source folder, and then the corresponding HTML Executable project is created.
- You can either edit the new project or compile it with HTML Executable. If you select "Compile", the project will be compiled silently and the new resulting exe file will be run.
Compilation Options
- Do not convert the Table of Contents even if available: by default, if your HTML Help contains a Table of Contents (TOC), CHM To Exe will parse it and create the same TOC in your HTML Executable project (see this help topic). If you want to avoid that, just enable this option.
- Make a stand-alone ebook: to create smaller executable files, HTML Executable relies on runtime modules. If you do not want to distribute these runtime modules among your executable files, just use this option and the runtime module is compiled in your .exe file.
Command Line Options
CHM To Exe supports command line options, you can then use it in batch processing.
Syntax:
CHMTOEXE.EXE "[.chm]" "[.hep]" "[.exe]" "[path to folder]" [/]
Note: use quotes when paths contains spaces such as "C:\Program Files".
- "[.chm]" = full path to the HTML Help file, including the .chm extension.
- "[.hep]" = full path to the output HTML Executable file.
- "[.exe]" = full path to the output executable file.
- "[path to folder]" = path to the source folder where source files will be unpacked to.
- [/] = optional switches to pass:
- /c : causes CHM To Exe to extract source files and create an HTML Executable project file.
- /q : forces CHM To Exe to exit after a successful operation.
Example:
CHMTOEXE.EXE "c:\program files\my app\help.chm" "d:\ebooks\project.hep" "d:\ebooks\project result.exe" "d:\ebooks\project source\" /c/q
Hint: you can also use HTML Executable directive files for batch processing in order to customize and compile your resulting .hep project file.
