Printing a word Document within Python
<p>I have a simple batch file here which will print a word document from the command line.</p>

<pre><code>"C:\Program Files\Microsoft Office\Office12\winword.exe" "p:\docs\daily checks.doc" /mFilePrintDefault /mFileExit
</code></pre>

<p>I am trying to place this into a python script, I have managed to get the document to open by using</p>

<pre><code>subprocess.Popen('"C:\\Program Files\Microsoft Office\Office12\winword.exe"' '"P:\\docs\\daily checks.doc "')
</code></pre>

<p>I can't seem to get the <code>/mFilePrintDefault /mFileExit</code> part in the command, I have tried using <code>+'"/mFilePrintDefault /mFileExit"'</code> plus without the +, but then the document won't open.</p>

<p>Can you possibly help to see how I can print this word document, or is there a better way</p>

<p>Thanks in advance</p>
