PDA

Click to See Complete Forum and Search --> : Passing URL to Netscape


CATKI2
Feb 3rd, 2000, 06:08 PM
I am trying to pass a url from a VB5 application to IE or Netscape. I am using ShellExecute to start IE with the specified URL, which sither starts the IE if not already running, or loads the url into the existing browser is IEis running.
My problem is with Netscape (v4.08), which works ok if the browser is not running, but ShellExecute insists on starting a new copy of the browser everytime.
I wondered if it was possible to send the url to the Loaded browser, as I can detect if a browser is already running, or is there was a better solution. (Not supporting Netscape is not an option).

Mark Sreeves
Feb 3rd, 2000, 07:27 PM
It is my understanding that ShellExecute()runs the application associated with the file type.


(this is ie4)

If I un-check the DDE checkbox for HTML files a new browser is opened. If DDE is used then a current browser is opened

Maybe your netscape machine needs the DDE settings setting

Alternatively, are there any Netscape command line switches?

I've had a quick search but no luck so far!

------------------
Mark Sreeves
Analyst Programmer

Mark.Sreeves@Softlab.co.uk
A BMW Group Company

invitro
Feb 4th, 2000, 03:57 PM
I dont know if this is going to help much... this procedure executes the default browser. Look at it, it dosent open a new window in netscape for me...


ShellExecute hwnd, "open","www.vbworld.com",vbNullString, vbNullString,
conSwNormal


:D