You are here

Using Command Prompt Portable and a BAT file to start Firefox for a specific URL

3 posts / 0 new
Last post
jeth
Offline
Last seen: 5 years 10 months ago
Joined: 2008-08-25 18:44
Using Command Prompt Portable and a BAT file to start Firefox for a specific URL

I believe at one point I managed to build a simple little app that used Command Prompt Portable and a BAT file that had been converted to an EXE.

But it's been a while and although I might be able to find it Wink I don't think I have seen how to specify the path to another portable app when I don't know what drive number has been assigned to the USB drive.

Basically, I want to create a couple of entries to start up Firefox Portable with several specific URLS. I know they could be stored as bookmarks once they are started manually, but I would rather make a couple of them appear as menu items in the main Portable Apps menu.

Thanks,
Joe Hunter

jeth
Offline
Last seen: 5 years 10 months ago
Joined: 2008-08-25 18:44
Senior Moment

It may be even easier than I thought. I forgot about the normal path conventions"
"." means current directory
".." mean back one level
"\" means root directory

So I am going to try:
\PortableApps\FirefoxPortable\FirefoxPortable.exe "url"

jeth
Offline
Last seen: 5 years 10 months ago
Joined: 2008-08-25 18:44
It Worked!

OK, the obvious worked; I should have thought of it sooner.

A typical example was:

\PortableApps\FirefoxPortable\FirefoxPortable.exe -new-tab "http://webmail.netzero.net":

The "-new-tab" option lets it use an existing instance and gets the page in a new tab.

The ":" at the end of the URL (which one site said should be in quotes) appears to be superfluous, but that also was shown on the same site that listed the various command line options for Firefox.

Log in or register to post comments