Convert a directory of Word files to a TOC

Subject: Convert a directory of Word files to a TOC
From: "John Posada" <jposada99 -at- gmail -dot- com>
To: techwr-l -at- lists -dot- techwr-l -dot- com
Date: Thu, 16 Oct 2008 09:50:27 -0400

Hi, guys...I want to do something that is over my head.

I was given over 250mb of Word files from an outside vendor (about 50
files). They are named by seqential numbers (MPLS20S04L01.doc,
MPLS20S04L02.doc, etc, though the numbers come in different groups) .
What I'd like to do is programmitcally, generate a TOC type of doc
that contains the file name and H1 title that can be picked up from
inside of the document.

That means something programmically has to start at the top of the
directory, write the file name ot a TOC Word doc, open the doc, write
the H1 to the TOC Word doc, close, go to the next file, write the
filename to the TOC doc, open and write the H1 title to the TOC doc,

No links, just a list. Has anyone done something like this before?

John Posada
Senior Technical Writer
NYMetro STC President

'Half this game is ninety percent mental.'
-- Danny Ozark, Philadelphia Phillies manager

ComponentOne Doc-To-Help gives you everything you need to author and
publish quality Help, Web, and print content. Perfect for technical
authors, developers, and policy writers. Download a FREE trial.

True single source, conditional content, PDF export, modular help.
Help & Manual is the most powerful authoring tool for technical
documentation. Boost your productivity!

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit

To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit for more resources and info.

Please move off-topic discussions to the Chat list, at:


Previous by Author: Re: off topic?? In the job market again - contracting...
Next by Author: Re: Predecessors always worse?
Previous by Thread: CHM translations to Chinese
Next by Thread: RE: Convert a directory of Word files to a TOC

What this post helpful? Share it with friends and colleagues:

Sponsored Ads