M
marker
I am working of a tcl script to convert a document. This script will
be distributed to multiple people. As one of the steps in the
program,I need to open a word document and save the document as a
"text only" file. I created a macro "Convert" to open a word document
and save it as a "text only" file. I saved the macro in a file
c:\temp\Convert.bas. I understand that via the command prompt I can
call the macro. From TCL I can execute a command prompt as follow:
eval exec "winword.exe /mConvert <file to open and convert>"
Since this will be running on other systems, I need to load the macro.
Do I need to load the macro or can I reference the bas file as part of
the command to read the macro, prior to executing it? If I need to
load the macro, how to I load it via a command prompt? If I can
reference the bas file, how do I do that via the command prompt?
Thanks for your help.
Regards,
Mark
be distributed to multiple people. As one of the steps in the
program,I need to open a word document and save the document as a
"text only" file. I created a macro "Convert" to open a word document
and save it as a "text only" file. I saved the macro in a file
c:\temp\Convert.bas. I understand that via the command prompt I can
call the macro. From TCL I can execute a command prompt as follow:
eval exec "winword.exe /mConvert <file to open and convert>"
Since this will be running on other systems, I need to load the macro.
Do I need to load the macro or can I reference the bas file as part of
the command to read the macro, prior to executing it? If I need to
load the macro, how to I load it via a command prompt? If I can
reference the bas file, how do I do that via the command prompt?
Thanks for your help.
Regards,
Mark