CHM files converted to HTML files to resolve CHM files that cannot be opened using the browser

Source: Internet
Author: User

The CHM is a shorthand for English "Compiled help Manual", which is "compiled helper Files". CHM is a new generation of Microsoft's Help file format, using HTML as the source text, the Help content in a similar database compiled storage.

The advantages of CHM files are lightweight, convenient, read-only, etc., through the directory, can be conveniently located in the file location, but it also has a big flaw, it can only use a specific reader to open, such as Microsoft provides Htmlhelpworkshop (System comes with), Etextwizard and so on. However, in the process of use, we often encounter the need to put CHM files on the site for users to view, but the browser does not support CHM files, it is necessary to convert the CHM file into HTML format on the website.

When converting CHM files to HTML, I also used some third-party transcoding tools, but the effect is not ideal, after the conversion of a lot of garbled, or the style is all messed up, can not be used. Therefore, the search for information, found through Microsoft's own tool can easily decompile the CHM file into an HTML file, and maintain the original style unchanged, the following to share with you, hoping to help people in need.

1. Using Win+r, open the "Run" dialog box;

2. Enter CMD to open the DOS command window;

3. Enter the code in the DOS window:

D: (Jump to the working disk where the CHM is located; If your CHM file is in the system disk, this step can be omitted)

Path name of the CD CHM document (jump to the directory where the CHM resides, that is, the working directory)

Hh-decompile the name of the CHM file after the converted HTML save path (call the Microsoft System's own tool to perform the anti-compile command)

4. At this point, the anti-compilation work is complete, we can use the anti-compiled HTML.

5. Note the point:

The above steps with the execution of the command, you can clearly see the current working directory changes, such as red callout, can be very convenient to guide our command execution success or not;

The path as far as possible to use English, because the Chinese may be because of coding problems, resulting garbled;

This anti-compilation does not support long file names, so it is necessary to change the name of the CHM file to a shorter, and not Chinese, before decompile.

When the post-compilation file is viewed locally, it may be because of some browser cross-domain compatibility issues (file://), which can cause some features to not work, such as directory expansion, but after uploading the file to the server, the problem disappears, please feel free to use.

When used, you can make the appropriate changes according to your own needs, but try not to delete any post-compilation files, otherwise it will affect the style of the page and the integrity of the content.

CHM files converted to HTML files to resolve CHM files that cannot be opened using the browser

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.