hexagon logo

Help with .bat File

Does anyone know the syntax to have a batch file print a microsoft word document?

I tried searching on-line but nothing I found seems to work. The printer is attached to the PC via a USB cable not a printer port. I am running XP.

TIA
Parents
  • "C:\Program Files\Microsoft Office\Office{look below}\winword.exe" "C:\My Documents\doc1.doc" /mFilePrintDefault

    The {look below} is a placeholder for the number version of Microsoft Word you have installed. Put in:

    7 if you have Word 95 (and change "/mfileprintdefault" to "/p", if hdhondt is correct)
    8 if you have Word 97
    9 if you have Word 2000
    10 if you have Word XP (2002)
    11 if you have Word 2003
    12 if you have Word 2007

    But I only tested it with Word 2003 and Word 2007
Reply
  • "C:\Program Files\Microsoft Office\Office{look below}\winword.exe" "C:\My Documents\doc1.doc" /mFilePrintDefault

    The {look below} is a placeholder for the number version of Microsoft Word you have installed. Put in:

    7 if you have Word 95 (and change "/mfileprintdefault" to "/p", if hdhondt is correct)
    8 if you have Word 97
    9 if you have Word 2000
    10 if you have Word XP (2002)
    11 if you have Word 2003
    12 if you have Word 2007

    But I only tested it with Word 2003 and Word 2007
Children
No Data