1.

Solve : scheduled event / batch file?

Answer»

Hello,
i'm not even SURE if this is possible, but is it possible to CREATE a batch file that will open a word document, PRINT it, then close the window...and set it up as a scheduled task. Please note, the printing may be optional. I know I should look this up myself but i'm pressed on time. Thank You.Use the cd\ to put yourself at the root of C:

cd program files\microsoft office\office11\winword.exe c:\print.doc

This will open a word file in word. However I don't believe you need to open it before you can print it.
You could just use the print command.

print /d:usb c:program files\microsoft office\office11\print.doc

That should print the document. Now obviously there are things you need to change because
your computers directory setup most likely differs from mine. Also you may not use USB as your
PRINTERS port.

Just make the changes that you need to so that everything is pointing in the right direction.

So type this into a notepad.

cd\
cd program files\microsoft office\office11
winword.exe c:\print.doc

print /d:usb c:program files\microsoft office\office11\print.doc

I don't think you need the part in bold. I think the print command will suffice. Then all you do is save it with the extension of .bat

Then use task scheduler to schedule it to run at specified times. Note that you may have to modify some things, as I wrote these as if I was doing them on my PC. You may need to change the USB part to something different, again it depends on your configuration.

But this should get you started and give you a good idea.

thank you very much for the reply!No problem.



Discussion

No Comment Found