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

**URL:** <https://forum.xojo.com/t/action-event-to-open-url-in-ie-when-it-is-not-default-browser/36232>\
**Category:** Windows\
**Created:** [February 21, 2017, 1:42am UTC](https://forum.xojo.com/t/action-event-to-open-url-in-ie-when-it-is-not-default-browser/36232 "2017-02-21T01:42:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_cooper](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@Dan\_cooper](https://forum.xojo.com/u/Dan_cooper)\
**Post date:** [February 21, 2017, 1:42am UTC](https://forum.xojo.com/t/action-event-to-open-url-in-ie-when-it-is-not-default-browser/36232/1 "2017-02-21T01:42:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Phillip\_Zedalis](https://forum.xojo.com/user_avatar/forum.xojo.com/phillip_zedalis/32/1151_2.png) [@Phillip\_Zedalis](https://forum.xojo.com/u/Phillip_Zedalis)\
**Post date:** [February 21, 2017, 1:44am UTC](https://forum.xojo.com/t/action-event-to-open-url-in-ie-when-it-is-not-default-browser/36232/2 "2017-02-21T01:44:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dan\_cooper](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@Dan\_cooper](https://forum.xojo.com/u/Dan_cooper)\
**Post date:** [February 21, 2017, 2:08am UTC](https://forum.xojo.com/t/action-event-to-open-url-in-ie-when-it-is-not-default-browser/36232/3 "2017-02-21T02:08:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dan\_cooper](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@Dan\_cooper](https://forum.xojo.com/u/Dan_cooper)\
**Post date:** [February 21, 2017, 3:19am UTC](https://forum.xojo.com/t/action-event-to-open-url-in-ie-when-it-is-not-default-browser/36232/4 "2017-02-21T03:19:27Z")

</div>

`"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

---

<div class="post-metadata">

**Author:** ![Dan\_cooper](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@Dan\_cooper](https://forum.xojo.com/u/Dan_cooper)\
**Post date:** [February 21, 2017, 3:42am UTC](https://forum.xojo.com/t/action-event-to-open-url-in-ie-when-it-is-not-default-browser/36232/5 "2017-02-21T03:42:57Z")

</div>

```
	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 🙂 whoop.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:40pm UTC](https://forum.xojo.com/t/action-event-to-open-url-in-ie-when-it-is-not-default-browser/36232/6 "2020-10-29T18:40:04Z")

</div>


