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

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
shailendra
Posts: 1
Joined: 24 Jan 2008 00:16

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

#1 Post by shailendra » 24 Jan 2008 00:33

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.

jaffamuffin
Posts: 40
Joined: 25 Jan 2008 14:05

#2 Post by jaffamuffin » 25 Jan 2008 14:57

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?)

Post Reply