There doesn't appear to be a print switch in Word/Office 2003.  Best
thing I can see is to write a macro that will do the printing and then

winword /mprintmacroname filename.doc where the first parm is /m
followed by the macro name with no spaces inbetween.

I found this in Word by going in to help and searching for "command line
switches" and selecting "Customizing how Word starts".

There appears to be some 3rd party utils as well if you don't want to
write the macro.  Dunno if the utils would be free.

John A. Jones, CISSP
Americas Information Security Officer
Jones Lang LaSalle, Inc.
V: +1-630-455-2787 F: +1-312-601-1782

-----Original Message-----
From: pctech-bounces@xxxxxxxxxxxx [mailto:pctech-bounces@xxxxxxxxxxxx]
On Behalf Of Dan
Sent: Tuesday, October 10, 2006 1:11 PM
To: PC Technical Discussion for iSeries Users
Subject: [PCTECH] Print a bunch of Word docs from a batch file

I've tried:
    winword d:\dev\test1.doc /p
    winword d:\dev\test2.doc /p
    winword d:\dev\test3.doc /p
    winword d:\dev\test4.doc /p
in a batch file, but all that happens is that Word opens up the
documents for editing.

I just want to print a bunch of documents from a batch file.  No
intervention, just print to the default printer.  FWIW, WinXP Pro SP2,
2002 SP3.  I also have installed WordViewer, which I tried in place of
winword, to no effect.

Easy, right?

This is the PC Technical Discussion for iSeries Users (PcTech) mailing
list To post a message email: PcTech@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: PcTech-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at

This email is for the use of the intended recipient(s) only.  If you have 
received this email in error, please notify the sender immediately and then 
delete it.  If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this email without the author's prior permission.  
We have taken precautions to minimize the risk of transmitting software 
viruses, but we advise you to carry out your own virus checks on any attachment 
to this message.  We cannot accept liability for any loss or damage caused by 
software viruses.  The information contained in this communication may be 
confidential and may be subject to the attorney-client privilege. If you are 
the intended recipient and you do not wish to receive similar electronic 
messages from us in future then please respond to the sender to this effect.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.