The following script and batch code work together to allow me to automatically print a word document when the batch file is executed. The only problem is that it currently prints to the default printer of the user who executes the batch file.
I need to be able to use a specific printer, not the user's default.
Does anyone know what script I need to be able to make it print to a specific printer?
The printer name and location is: "\\ds2\Konica 7060PS Back"
Here's the vbs script and batch file:
----- start wordprint.vbs file ------------
Set WordApp = CreateObject("Word.Application")
WordApp.Documents.Open(WScript.Arguments.Item(0))
WordApp.ActiveDocument.PrintOut False
WordApp.ActiveDocument.Close False
WordApp.Quit
Set WordApp = Nothing
---- end wordprint.vbs file -------------
----- start Batch file ------------
start \\devweb01\docs\wordprint.vbs \\devweb01\docs\test.rtf
----- end Batch file ------------
Any ideas?