Subject Re: opening link on a "SPECIFIC BROWSER"
From <> <<>>
Date Wed, 7 Nov 2018 09:02:08 -0500
Newsgroups dbase.getting-started
Attachment(s) openBrowser.prg

The code for launching a link like that way just tells Windows to use the
default browser.
For a specific browser other than the default either you need to change the
default browser.
Changing the default browser is done by editing the registry and specifying
which browser you want to use.
This becomes a global Windows change and not really recommended to change
anything globally.

The other way is to use the command line of the browser you which to launch.
That means knowing the different browsers, where they are installed, and
what the command line will look like.
for example to open a website using chrome
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
or since it installs itself so you don't need the entire command line;
You'd either have to search for the EXE or open the registry to see where
its installed.
Then you'd need to know its command line syntax, construct the command line,
and then call it from dBASE.
Most browser are pretty easy since they are in the path already and they
take a simple command line.

Attached is a simple prg that will open your URL in chrome, IE or edge
Of course I haven't added the test to make sure those browsers are installed
and it doesn't include more complicated command line syntax.

Hope this helps...

"kent"  wrote in message news:K8OpTzjdUHA.1828@ip-AC1E04A7...


Is there a way that i can open a specific web address bg a specific
i trie.looking at MiscAPI.prg but it seems it only uses default browser
assigned to the window.
i want mine to be a bit more dynamic coz there are web links that are
browser compatible . I want user to select a browser which they want to use
(e.g Explorer, Firefox, chrome).
I hope someone can help.