Discussion:
Conversion of CHM to TXT
(too old to reply)
eljainc
2009-02-04 22:25:23 UTC
Permalink
Hello,

I am looking for a utility that will allow me to convert a CHM file to
TXT (Windows CHM to text file). I would like a program that can be
run from a command line.

Thanks
Mike
msnews.microsoft.com
2009-02-05 18:26:56 UTC
Permalink
You could probably do it by using an application like FAR to decompile the
CHM and then using another app like Flare to generate a Word document and
then save as txt. Three steps, a bit tricky, but it should work and you
could probably get some command line batch program to do it for you.

Robin
Post by eljainc
Hello,
I am looking for a utility that will allow me to convert a CHM file to
TXT (Windows CHM to text file). I would like a program that can be
run from a command line.
Thanks
Mike
Rainer H. Rauschenberg
2009-02-06 12:58:31 UTC
Permalink
Post by eljainc
I am looking for a utility that will allow me to convert a CHM file to
TXT (Windows CHM to text file). I would like a program that can be
run from a command line.
md tmp
copy sourcedir\help.chm
hh -decompile . .\help.chm
for %i in (*.htm) do (lynx -dump %i >%~ni.txt)

lynx is available at http://fredlwm.googlepages.com/lynx.zip

Since the content of a chm has no "natural" serial order you have to
figure out yourself in what order to concatenate the textfiles.
msnews.microsoft.com
2009-02-06 19:58:07 UTC
Permalink
Or you could just spend a few $ and use this..

http://www.processtext.com/abcchm.html
Post by eljainc
Hello,
I am looking for a utility that will allow me to convert a CHM file to
TXT (Windows CHM to text file). I would like a program that can be
run from a command line.
Thanks
Mike
Loading...