<br><br>
<div class="gmail_quote">On Wed, Jun 11, 2008 at 3:11 PM, Trey Keown &lt;<a href="mailto:trey@opmstech.org">trey@opmstech.org</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hey all,<br>&nbsp;I&#39;m creating a program that will copy a user&#39;s internet history from<br>Internet Explorer, and I&#39;m having a bit of trouble.<br>
<br>I need to get python to either initiate a command via the command prompt,<br>or open a file with its default program (in this case, a .bat file with<br>cmd.exe).<br><br>I&#39;ve been googling a bit, but I can&#39;t seem to find any answers.<br>
<br>Thanks for any help.<br><br>_______________________________________________<br>Tutor maillist &nbsp;- &nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</blockquote></div>
<div>&nbsp;</div>
<div>-------------------</div>
<div>&nbsp;</div>
<div>I think os.system should do the trick in running something from the command line. </div>
<div>&nbsp;</div>
<div>e.g </div>
<div>&nbsp;</div>
<div>os.sytem(&#39;dir&#39;)</div>
<div>&nbsp;</div>
<div>Will run the dir command. I&#39;m not sure if that&#39;s what you&#39;re looking for but it sounds about right.<br></div>