944,112 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 3911
  • Python RSS
Oct 26th, 2006
0

Launch IE from python?

Expand Post »
Hey guys, I'm just about done with a program and I need to know how to launch an IE window (or any browser I suppose) from the command prompt. Can anybody help me? thanks!:cheesy:
Similar Threads
Reputation Points: 10
Solved Threads: 2
Newbie Poster
DarkFlash is offline Offline
13 posts
since Oct 2006
Oct 27th, 2006
0

Re: Launch IE from python?

Will this work?

Click to Expand / Collapse  Quote originally posted by vegaseat ...
The following little Python code will bring up your default webbrowser and connect it to the given URL ...
[php]import webbrowser

# you have to be connected to the internet
# supply a URL of your choice
webbrowser.open('http://www.python.org/')
[/php]
Last edited by Zonr_0; Oct 27th, 2006 at 1:37 am. Reason: ops, no need to quote the only other post in the topic >_>
Reputation Points: 10
Solved Threads: 3
Newbie Poster
Zonr_0 is offline Offline
16 posts
since Oct 2006
Oct 27th, 2006
0

Re: Launch IE from python?

You can also look at os.system() and the subprocess module.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
utabintarbo is offline Offline
2 posts
since Oct 2006
Oct 27th, 2006
0

Re: Launch IE from python?

Worked great, thanks for the info!
Reputation Points: 10
Solved Threads: 2
Newbie Poster
DarkFlash is offline Offline
13 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: ROT-13 program
Next Thread in Python Forum Timeline: tuples and lists





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC