Re: Executing another program
- Posted by Greg Haberek <ghaberek at gmail.com> May 24, 2005
- 397 views
> I am trying to execute the user's default browser to launch a website aft= er the click of a button. I have looked at system() and system_exec() but n= either are helping me very much. I've even tried launching iexplore with an= d without the full-path to the executable with no luck. > > Can anyone give me some ideas on where to go with this? Thanks! If you just want to launch a web address, you don't need to worry about launching the browser itself, Windows will handle it via file associations. You just need to 'launch' the web address. Try either of these examples: -- this causes a command window to flash on the screen: system( "start http://www.google.com/", 2 ) -- this is for Win32lib only: shellExecute( "open", "http://www.google.com/", SW_SHOWNORMAL ) ~Greg