How to convert a HTML Help file (.chm)?

  1. Launch Chm To Exe and click on "Open CHM". You can also drag and drop CHM files directly onto the window.
  2. 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:

    CHM To Exe : explanation

    "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.

  3. Click on the "Convert to .EXE" tab or on "Convert it to .exe" under the name of your HTML Help file.
  4. 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.
  5. Click on "Convert CHM To HEP". All source files are first extracted to the source folder, and then the corresponding HTML Executable project is created.
  6. 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

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".

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. More information here.