The internet was just an example. I'm just looking at how to open .exe from python. ----- Original Message ----- From: "Liam Clarke-Hutchinson" <[EMAIL PROTECTED]> To: "'Robin Buyer'" <[EMAIL PROTECTED]>; <tutor@python.org> Sent: Thursday, December 22, 2005 7:35 PM Subject: RE: [Tutor] running a .exe
> Hi Robin, > > Normally you would use > > import os > > os.system("c:/windows/iexplore.exe") # Or wherever it lives > > Build as you're attempting to run internet explorer you could use - > > import webbrowser > > webbrowser.open("http://www.google.co.nz") #Assuming IE is system default > broswe > > > Liam Clarke-Hutchinson| Contact Centre Advisor| Ministry of Economic > Development > DDI +64 3 962 2639 | Fax +64 3 962 6220 > www.med.govt.nz > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Robin Buyer > Sent: Friday, 23 December 2005 11:50 a.m. > To: Tutor@python.org > Subject: [Tutor] running a .exe > > > How do you run a .exe from inside a python program. > random example: > print "What would you like to do today? " > print "E - email" > print "I - internet" > what = input("Choose: ") > if what == "E": > Heres where i would need to run IEXPLORE.exe > > A new monthly electronic newsletter covering all aspects of MED's work is now available. Subscribers can choose to receive news from any or all of seven categories, free of charge: Growth and Innovation, Strategic Directions, Energy and Resources, Business News, ICT, Consumer Issues and Tourism. See http://news.business.govt.nz for more details. > > > > > http://www.govt.nz - connecting you to New Zealand central & local government services > > Any opinions expressed in this message are not necessarily those of the Ministry of Economic Development. This message and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivery to the intended recipient, be advised that you have received this message in error and that any use is strictly prohibited. Please contact the sender and delete the message and any attachment from your computer. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor