<br><div><span class="gmail_quote">On 23/01/06, <b class="gmail_sendername">Fredrik Lundh</b> <<a href="mailto:fredrik@pythonware.com">fredrik@pythonware.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Chris Cioffi wrote:<br><br>> Q: If I have a file called "spreadsheet.xls" how can I launch it in what<br>> ever program it is associated with? I don't care if that program is Excel<br>> or OpenOffice Calc. I just want to launch the file.
<br><br>>>> import os<br>>>> help(os.startfile)<br>Help on built-in function startfile in module nt:<br><br>startfile(...)<br> startfile(filepath) - Start a file with its associated application.<br><br>
[snip]</blockquote></div><br>I knew that as soon as I asked this question someone would very simply show me why I'm a moron! ;)<br><br>Thank you! Chris<br>-- <br>"A little government and a little luck are necessary in life, but only a fool trusts either of them." -- P. J. O'Rourke