Is there a command-line tool that I can run to update a Word doc? I
want to replace one word "%Revision%" in a .doc file with a revision
number generated automatically by our version management tool (Serena
Version Manager).
No, there are no commandline switches that will perform actions in a
document. You'd need to automate Word, open the document and make the
changes.
If the files were saved in RTF or HTML format you could conceivably
write a program that could parse and edit the content without opening
the file in WORD.
Another possibility would be to create a document property to contain
the Revision information. Use DocProperty fields to display it
throughout the document. Then, using dsofile.exe, a program could
change the document property without opening the file in Word.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail
