[CMD] chmls - a CHM utility (list / extract ...)

Discuss other useful utilities, general computing tips & tricks, Internet resources, etc.
tmplinshi
Posts: 1604
Joined: 01 Oct 2013, 14:57

[CMD] chmls - a CHM utility (list / extract ...)

27 Jan 2014, 20:41

Code: Select all

chmls, a CHM utility. (c) 2010 Free Pascal core.

Usage: chmls [switches] [command] [command specific parameters]

Switches :
 -h, --help     : this screen
 -p, --no-page  : do not page list output
 -n,--name-only : only show "name" column in list output

Where command is one of the following or if omitted, equal to LIST.
 list       <filename> [section number]
            Shows contents of the archive's directory
 extract    <chm filename> <filename to extract> [saveasname]
            Extracts file "filename to get" from archive "filename",
            and, if specified, saves it to [saveasname]
 extractall <chm filename> [directory]
            Extracts all files from archive "filename" to directory
            "directory"
 unblockchm <filespec1> [filespec2] ..
            Mass unblocks (XPsp2+) the relevant CHMs. Multiple files
            and wildcards allowed
 extractalias <chmfilename> [basefilename] [symbolprefix]
            Extracts context info from file "chmfilename"
            to a "basefilename".h and "basefilename".ali,
            using symbols "symbolprefix"contextnr
 extracttoc <chmfilename> [filename]
            Extracts the toc (mainly to check binary TOC)
 extractindex <chmfilename> [filename]
            Extracts the index (mainly to check binary index)
Examples:

D:\Program Files\AutoHotkey>chmls.exe list AutoHotkey.chm
Spoiler
D:\Program Files\AutoHotkey>chmls extract AutoHotkey.chm /docs/scripts/VolumeOSD.ahk
Spoiler
:arrow: Download: https://github.com/alrieckert/freepasca ... /chmls.exe
lexikos
Posts: 9494
Joined: 30 Sep 2013, 04:07
Contact:

Re: [CMD] chmls - a CHM utility (list / extract ...)

01 Feb 2014, 05:31

Or you could just use hh.exe (the help viewer) and AutoHotkey. Usage is hh.exe -decompile folder chm
tmplinshi
Posts: 1604
Joined: 01 Oct 2013, 14:57

Re: [CMD] chmls - a CHM utility (list / extract ...)

01 Feb 2014, 06:10

Thanks! Yes, hh.exe is another tool to extract chm file. In fact, the list command in chmls.exe is what I found maybe useful, and the reason to post this utility.
lexikos
Posts: 9494
Joined: 30 Sep 2013, 04:07
Contact:

Re: [CMD] chmls - a CHM utility (list / extract ...)

02 Feb 2014, 04:35

I don't get why you'd use a third party tool when you can just decompile it using a program included with Windows and list the files using a simple file loop.

Well I suppose I just don't see much use in listing the topics without extracting them. BTW, you can extract the index and TOC using a WebBrowser control in AutoHotkey.
User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: [CMD] chmls - a CHM utility (list / extract ...)

03 Feb 2014, 06:23

I remember using this a while back... Microsoft's HTML Help Workshop
http://www.microsoft.com/en-us/download ... x?id=21138
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
lmstearn
Posts: 681
Joined: 11 Aug 2016, 02:32
Contact:

Re: [CMD] chmls - a CHM utility (list / extract ...)

14 Apr 2017, 09:45

The unblockchm looks interesting. Probably similar to something posted at this thread:

Code: Select all

String ZIStream(HelpFileName + ":Zone.Identifier") ;

if (FileExists(ZIStream))
    { DeleteFile(ZIStream) ; }
The beauty of chm files inside compiled AHK executables precludes the necessity of it at present, even when a chm file is extracted from an AHK .exe via 7-zip or similar.
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH
codybear
Posts: 42
Joined: 25 Feb 2014, 04:28

Re: [CMD] chmls - a CHM utility (list / extract ...)

17 Apr 2017, 20:06

lexikos wrote:I don't get why you'd use a third party tool when you can just [use] a program included with Windows
heh. Do you use IE only? :P
lexikos
Posts: 9494
Joined: 30 Sep 2013, 04:07
Contact:

Re: [CMD] chmls - a CHM utility (list / extract ...)

17 Apr 2017, 20:29

You have clearly taken my words out of context.

The differences between web browsers are far greater than the differences between two methods of extracting and listing CHM contents.
codybear
Posts: 42
Joined: 25 Feb 2014, 04:28

Re: [CMD] chmls - a CHM utility (list / extract ...)

17 Apr 2017, 22:47

Lol, I was joking Lexikos. Just ignore me and my ramblings.
lexikos
Posts: 9494
Joined: 30 Sep 2013, 04:07
Contact:

Re: [CMD] chmls - a CHM utility (list / extract ...)

18 Apr 2017, 01:57

Of course, and this is my way of showing that your joke was not very good.
User avatar
joedf
Posts: 8937
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: [CMD] chmls - a CHM utility (list / extract ...)

18 Apr 2017, 06:02

Lexikos is Edge-y when it comes to bad jokes... :hehe:
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
codybear
Posts: 42
Joined: 25 Feb 2014, 04:28

Re: [CMD] chmls - a CHM utility (list / extract ...)

18 Apr 2017, 14:03

lexikos wrote:Of course, and this is my way of showing that your joke was not very good.
Seeing as how I won't be able to beat Joedf's comment, I'll just see myself out.

Return to “Other Utilities & Resources”

Who is online

Users browsing this forum: No registered users and 13 guests