I have a simple batch file here which will print a word document from the command line.
"C:\Program Files\Microsoft Office\Office12\winword.exe" "p:\docs\daily checks.doc" /mFilePrintDefault /mFileExit
I am trying to place this into a python script, I have managed to get the document to open by using
subprocess.Popen('"C:\\Program Files\Microsoft Office\Office12\winword.exe"' '"P:\\docs\\daily checks.doc "')
I can't seem to get the /mFilePrintDefault /mFileExit part in the command, I have tried using +'"/mFilePrintDefault /mFileExit"' plus without the +, but then the document won't open.
Can you possibly help to see how I can print this word document, or is there a better way
Thanks in advance