WARNING: IN x64 VERSION DON'T WORK PACKING, DELETING ETC. — IT CRACHES TC!
Author uses 32-bit system and have not enough time for testing 64-bit version.
Tested with Total Commander 7.x (32-bit) under WinXP (rus), 8.0 (64-bit) under Win7 (x64). Need WinNT 3.5 or Win95 or newer.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY and NO SUPPORT.
Comments may be send to author.
CHMlib, CHMtools and LZX Compression library are Copyright 2001 Matthew T. Russotto — http://www.speakeasy.org/~russotto/.
CHMDir uses info from Paul Wise aka pabs —
http://pabs.zip.to
and small piece of code from
Info-ZIP (file match.c
).
CHMDir adds support of ITSS/CHM file format (compiled HTML) to Total Commander, allows you to extract, search, pack, delete files in CHM.
Also it add unpacking of HtmlHelp 2 files (.Hx?
).
Also it can used as content plugin, showing info about title of help window, maker of CHM and time of compilation.
Presence of Internet Explorer in system is not necessary.
NB: Plugin can not make full-fledged HtmlHelp files (contents, index, etc.) but it can make CHM-file even if there is one '.htm' or '.html' file in files to be packed. For example, repack this archive to CHM-file. To make full-fledged HtmlHelp use HTML Help Workshop or htm2chm.
If there is not file '#SYSTEM' in root of packed files list it will be created
and if there is not some '.hhc' file in packed list, 'stub.hhc' will be
created with all files and directories from packing list using <title> of topic. Its
order depends on sort type of TC. Default topic will be (what comes first, case
insensitive): see 'default_topics
' in CHMDir.ini.
If there is not such file, first found
'.htm' or '.html' in packed list will be used.
For keeping structure of file before repacking it must be unpacked with turned on option 'Show special CHM files' in CHMDir.ini to keep files such as '#SYSTEM' (there is information about title of help window and contents file in this file).
File_Id.diz | short description of package | |
index_en.htm | description of package on English (you are now reading) | |
index_ru.htm | same as above on Russian | |
chmdir.css | Style sheet for index_*.htm | |
pluginst.inf | INF-file for automatically install the plugin | |
CHMDir.wcx | plugin module | |
sample.ini | sample INI-file for plugin | |
chmdir.lng | language file for WDX | |
CHMView.exe | program for viewing CHM files without hh.exe | |
UnCHMw.exe | command line utility for unpacking CHM files | |
wtdump.exe | program for dumping properties of HtmlHelp window | |
wtedit.exe | program for editing HtmlHelp window properties | |
descript.ion | file descriptions |
chmdir.wcx
to the Total Commander directory (usually
c:\wincmd
or c:\totalcmd
) or directory as you like
chm
' as the extension
chmdir.wcx
sample.ini
) in dir same as plugin
NB: File icons and default action (on <Enter>) will not change. To enter into archive use <Ctrl-PgDn>. If you want to change this to opening archive with <Enter> and showing archive icon:
- Choose Configuration/Options... then open page Packer and press button Configure in 'Packer plugins (.WCX)'
- In drop-down list 'All file with...' choose 'chm'
- In field 'Associate with:' change number NNN before comma to MMM, where MMM=NNN-256
or
- Close Total Commander
- Open Total Commander's INI-file (usually <windows_dir>\WINCMD.INI) with text editor
- In section [PackerPlugins] change NNN in line looks like 'chm=NNN,C:\wincmd\chmdir.wcx' to MMM, where MMM=NNN-256.
To view CHM-file use one of:
- command hh <chm-file>,
- keystroke <Ctrl-Enter> to insert file name into command line and <Enter> to open file,
- right click on file name and choose default action (bolded).
At startup plugin looks up in its directory (or directory specified by Total Commander) the file CHMDir.ini
— standard
Windows ini-file.
See descriptions in sample.ini.
In order to changes start to work you must restart TC or unload all plugins and change to another archive (TC remember file list of last archive).
NB: To use CHMDir.ini
from plugin dir,
add into INI file into section [CHMDir]
line ini_in_plugdir=1
.
This program is intended for viewing CHM files without hh.exe. It needs one parameter — CHM file name. It will unpack all files in CHM into temp dir and will try to start default HTML viewer.
wtdump.exe dumps properties of HtmlHelp window (or default properties in current dir) and sample HHP (HtmlHelp project file) that can be used to create such HtmlHelp.
wtedit.exe allows you to edit HtmlHelp window properties of file that used as program parameter.
Both programs need CHMDir.wcx
in its directory or in directory
pointed by environment variable 'PATH
'.
For more information see HTML Help Web page or Help for HTML Help from HTML Help Workshop.
This program is stand alone command line version of CHM unpacker.
UnCHMw.exe uses settings from CHMDir.ini.
See: http://www.totalcmd.net/plugring/chmdir.html
Edit Makefile
, make dir with name "obj" and run 'Nmake.exe'.
Oleg Bondar aka Hobo (hobo-mts at mail pnt ru
).
Change 'at' to '@' and 'pt' to '.'.
Subject of message must contain word 'CHMDir'.
'!!! Hobo'
.
Failed. Known bug #1 still present. :-(