Winword Switch for New Document

M

mrgou

Hi,

Using "winword <filename>" will only work if the specified file
already exists; i.e., Word will not create a new document with that
name (in the current or specified directory).

Is there a switch that will force Word to create the document? I could
find none in the knowledge base (<http://support.microsoft.com/kb/
210565/en-us>), but there might be a non-documented one...

Thanks in advance.

Raph
 
J

John McGhie

No. There's no hidden switch. There is an API call that enables a wide
range of functionality, but no batch call.

So you can use the Windows Scripting Host to instantiate Word and when you
do, specify the file name, template name, and file format of the document
you create.

For more, visit microsoft.public.word.programming...

Cheers
 
M

mrgou

No. There's no hidden switch. There is an API call that enables a wide
range of functionality, but no batch call.

That's what I suspected. Not a bad idea to do it through a script...

Thanks!

Raph
 
Top