The ITP subdocument support can be used to generate a list of included documents. This list is an ASCII document that can be used for further processing or administrative purposes.
Depending on the word processor format of the master document one of the following programs should be selected from the folder itp. 35.
Word processor format |
Program |
|---|---|
WordPerfect 6.x/7/8/9 |
wp62idoc |
AmiPro (WordPro) |
am42idoc |
ASCII |
asc2idoc |
Microsoft Word 6.0/95 |
wf62idoc |
Microsoft Word 97 and higher |
wf82idoc |
HTML |
htm2idoc |
OpenOffice.org 1.x |
ooo2idoc |
Start one of these programs from a command line or from an application using the following command:
c:\program files\itp.35\bin\wf82idoc /q /i master.doc list.txt
Replace paths and filenames as appropriate.
This command will produce an ASCII file list.txt, which contains a list of all the documents that would be included into the master.doc document, based on the settings in your default ITP configuration file.
It is possible to use a different configuration file by adding the parameter
/cfg=c:\itpwork\config.21\other.cfg
to the command line. (Replace path and filename as appropriate.)
Example output
master.doc
. f:\itptest\moddocs\w-test8\loop.doc
. . f:\itptest\moddocs\w-test8\loop.inc
. . f:\itptest\moddocs\w-test8\complex.doc
. . f:\itptest\moddocs\w-test8\loop2.inc
. . . f:\itptest\moddocs\w-test8\loop.inc
. f:\itptest\moddocs\w-test8\include1.doc
. f:\itptest\moddocs\w-test8\include2.doc
. f:\itptest\moddocs\w-test8\include3.doc
. f:\itptest\moddocs\w-test8\incstyle.doc
. f:\itptest\moddocs\w-test8\include.txt
. . f:\itptest\moddocs\w-test8\..\include2.txt
. . f:\itptest\moddocs\w-test8\Image1.doc
. f:\itptest\moddocs\w-test8\incstyl2.doc
. f:\itptest\moddocs\w-test8\incole.doc
. f:\itptest\moddocs\w-test8\incole2.doc
The leading dots indicate the level on which the subdocument has been included.
In this example master.doc includes loop.doc which includes loop.inc etcetera.