Page 1 of 1

Launch a webpage in the default browser

Posted: Sat Jul 30, 2011 11:46 pm
by Mistrel
This code is Windows only and works fine in Windows 7:

Code: Select all

RunProgram("rundll32.exe","url.dll,FileProtocolHandler "+#DQUOTE$+"http://google.com"+#DQUOTE$,"")

Re: Launch a webpage in the default browser

Posted: Sun Jul 31, 2011 12:03 am
by ts-soft
What is the difference to:

Code: Select all

RunProgram("http://google.com") 
I have the same result.

Re: Launch a webpage in the default browser

Posted: Sun Jul 31, 2011 6:33 am
by rudz
A 3rd way, exactly the same result.

Code: Select all

ShellExecute_(0,"open","http://www.google.com","","",1)

Re: Launch a webpage in the default browser

Posted: Mon Aug 08, 2011 2:02 pm
by Psychophanta
The difference is that the ts-soft one is more readable and functional in allOS.