- 1 year ago
How to generate .hhp file from windows command prompt?
To generate a .hhp
file from the Windows Command Prompt, you'll need to use a help authoring tool like Microsoft HTML Help Workshop. The HTML Help Workshop is a free tool provided by Microsoft to create compiled help files (.chm) and it uses .hhp
files as the project file.
Here are the steps to generate a .hhp
file using HTML Help Workshop from the Windows Command Prompt:
Download and install HTML Help Workshop from the Microsoft website if you haven't already: https://www.microsoft.com/en-us/download/details.aspx?id=21138
Once installed, open the Command Prompt.
Navigate to the folder where your help project files are located using the
cd
command. For example, if your project files are inC:\MyHelpProject
, you can use:bashcd C:\MyHelpProject
Use a text editor (such as Notepad) to create a new
.hhp
file or modify an existing one. The.hhp
file contains information about your help project, such as the title, index file, and other settings. For example:scss[OPTIONS]
Auto Index=Yes
Compatibility=1.1 or later
Compiled file=myhelp.chm
Default Window=main
Default topic=index.html
Display compile progress=Yes
Full-text search=Yes
Language=0x409 English (United States)
Title=My Help File
[FILES]
index.html
topic1.html
topic2.html
Save the
.hhp
file in your project folder.Open HTML Help Workshop by typing
hhw
in the Command Prompt and pressing Enter.In the HTML Help Workshop window, go to File -> Open and select the
.hhp
file you created or modified.HTML Help Workshop will load your project. You can now add topics, customize the help layout, and build the compiled help file (
.chm
) by going to File -> Compile.After compiling, you will get the
.chm
file, which is the compiled help file.
Please note that HTML Help Workshop offers a graphical user interface (GUI) for creating and compiling help projects. If you prefer using the GUI, you can directly open HTML Help Workshop from the Start menu and create a new project or open an existing one.