Edit multiple chm files at once

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
pouliotmax
Sr. Propeller Head
Posts: 123
Joined: Wed Mar 07, 2007 9:16 am
Location: Quebec City

Edit multiple chm files at once

Post by pouliotmax »

Hi,

i have over 2000 chm files that i need to edit (delete a call to a js script). Is there a way to do this easily without having to decompile/compile each chm file?
i-tietz
Propellus Maximus
Posts: 1219
Joined: Wed Oct 24, 2007 4:13 am
Location: Fürth, Germany

Re: Edit multiple chm files at once

Post by i-tietz »

no.
Inge____________________________
"I need input! - Have you got input?"
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Edit multiple chm files at once

Post by Nita Beck »

I think that there is a program you could use, but I don't remember what it is. I've sent an email off to a pal of mine in the Rochester Flare User Group, relaying your question and suggesting he post an answer.

(Brian, I'm talking to you!! :wink: )
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
pouliotmax
Sr. Propeller Head
Posts: 123
Joined: Wed Mar 07, 2007 9:16 am
Location: Quebec City

Re: Edit multiple chm files at once

Post by pouliotmax »

Great thanks!
brianlaing
Propeller Head
Posts: 10
Joined: Mon May 29, 2006 5:41 am

Re: Edit multiple chm files at once

Post by brianlaing »

The answer is yes and no, actually! :D

By nature, CHM files are finished products. So think of it like a PDF - you can, with the proper tools, edit a PDF (finished product) to make a correction.

To remove the call to js in a CHM you can use a CHM Editor (http://www.chmeditor.com/). It's a nifty program that will let you directly open .chm that you can then edit using either the HTML or source views. Using the source view you can search for the line you need to delete and replace it with a blank line or manually remove it.

CHM Editor does the editing on a one-by-one, file-by-file basis. It doesn't automate the process for you. Your request to have it automatically open each file, look for a string, remove the string, save and close the file can only be done manually by you. Using this program (or one like it such as Fly Help) would be quicker than going back to the source in Flare and fix it.

BTW - I don't work for either CHM Editor or Fly Help - but I've used them both. Neither are free but are pretty low-cost compared to your time ($$) in doing the edits through Flare.

Cheers,
Brian
Post Reply