# Launch URL but using specific browser?

## Recommended Posts

I use Portable Firefox even at the office. The code that I recvd from a previous post a long time ago to launch a URL is like this where we just have to change the URL each time to what we need:

RunWait(@ComSpec & ' /c start http://www.lirico.ca/ipac20/ipac.jsp?profile=lirico-eng&menu=account', '', @SW_HIDE)

Is there any way to modify the above to include a path to my own browser instead?

Thanks

##### Share on other sites

RunWait("C:\Program Files\Mozilla Firefox\firefox.exe start http://www.lirico.ca/ipac20/ipac.jsp?profi...p;menu=account", '', @SW_HIDE)

##### Share on other sites

RunWait("C:\Program Files\Mozilla Firefox\firefox.exe start http://www.lirico.ca/ipac20/ipac.jsp?profi...p;menu=account", '', @SW_HIDE)
Hi, thanks for the help!

This doesn't work properly, btw. Changed path to what mine is, of course, so Firefox _is_ launched, but I'm taken to an incorrect URL, somewhere on www.live.com?! ComSpec isn't used as in previous code example, and although there is no word wrap, the code breaks to the next line. One of the other might be causing the problem, perhaps(??). Anyone know why this isn't directed where it should go and what might fix this?

Thanks!

##### Share on other sites

I think you need to remove the "start" from that line of code, and probably figure out what the "..." portion of the URL should be.

##### Share on other sites

what might fix this?

Try this:

Run('"C:\Program Files\Path\to\browser.exe" "http://www.autoitscript.com"')oÝ÷ Øêí+ºÚ"µÍÚ[^XÝ]J  ][ÝÐÎÌLÔÙÜ[H[ÉÌLÔ]    ÌLÝÉÌLØÝÜÙ^I][ÝË  ][ÝÚËÝÝÝË]]Ú]ØÜÛÛI][ÝÊ
Edited by MsCreatoR

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

My Work...

Spoiler

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating )

* === My topics === *

==================================================

==================================================

AutoIt is simple, subtle, elegant. © AutoIt Team

## Create an account

Register a new account