Page 1 of 1

How to Open a word document and close it using Batch file.

Posted: 24 Jan 2008 00:33
by shailendra
Hi,

I am trying to write a DOS batch file which can open a word document or any other file. Execute the logic in that file and close the file after execution.

I was succeded in opening a word document but i'm not getting any idea how to close the word document through batch file.

Need help on this.

Thanks in advance.

Posted: 25 Jan 2008 14:57
by jaffamuffin
pstool / psexec to kill the process.?

Or use 'the logic' in Word to also close word when done?

Some kind of dll hook perhaps? (think about when you print a word doc from the right click menu?)