<br><br>
<div class="gmail_quote">On Wed, Jun 11, 2008 at 3:11 PM, Trey Keown <<a href="mailto:trey@opmstech.org">trey@opmstech.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hey all,<br> I'm creating a program that will copy a user's internet history from<br>Internet Explorer, and I'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've been googling a bit, but I can't seem to find any answers.<br>
<br>Thanks for any help.<br><br>_______________________________________________<br>Tutor maillist - <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> </div>
<div>-------------------</div>
<div> </div>
<div>I think os.system should do the trick in running something from the command line. </div>
<div> </div>
<div>e.g </div>
<div> </div>
<div>os.sytem('dir')</div>
<div> </div>
<div>Will run the dir command. I'm not sure if that's what you're looking for but it sounds about right.<br></div>