Action Event to Open URL in IE when it is not Default Browser

I would like to have the action of a Button, launch IE (even if it is not the default browser and enter a URL to a site) The Site requires IE to work but many people have chome as their default so ShowURL alone will not work.

Thanks in advance for your help.

You can probably pass the URL as command line arguments to iexplorer.exe. You will have to locate it in Program Files. Be mindful that “Program Files (x86)” may also be available.

Thanks Phillip, I will do some research on that I am a bit of a newb, but that is a good place to start and learn.

"C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe" "https://www.google.com" works like a charm from the command prompt, but xojo does not like the syntax

Dim s As Shell s = new Shell s.execute("C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe" "https://www.google.com") s.Close

Any tips (well answer…really) to pass the Url through xojo to the shell.

I tried:

Dim s As Shell s = new Shell s.execute("C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe" + "https://www.google.com")

Which Xojo will compile with no syntax error button the action does not do anything, IE does not launch.

Thanks

	Dim s As Shell
	s = new Shell 
	s.execute("C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe", "https://www.google.com") 
	s.Close

A COMMA :slight_smile: whoop.