comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: launching web browser?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: launching web browser? [message #20731] Sat, 22 July 2000 00:00 Go to previous message
Mark Rivers is currently offline  Mark Rivers
Messages: 49
Registered: February 2000
Member
tb wrote in message <8l7cql$fsi$1@ra.nrl.navy.mil>...
> Anybody got a good solution of how to launch the system default
> web browser? Just doing
>
> spawn, "iexplore.exe"
> or
> spawn, "netscape.exe"
>
> is no good because I don't know if that's their browser, or even
> if those are loaded on the system. They may use some other browser that
> I'm not aware of.
>
> Or.. launch *any* (non-shell, i.e. windowing) app, e.g. Excel.

You spawn the command
"start <URL>" where <URL> is the Web page you want to display.
This is actually quite simple and elegant.
- The start command makes it run in the "background" so that IDL does not
wait for the
browser to exit
- It launches whatever application is associated with URLs, i.e. the default
browser. Note that the
browser must be correctly installed for this to work.
- If there is already a browser running it displays the page on that running
browser. If there
is not already a browser running it will start a new one.
for example:
spawn("start http://cars.uchicago.edu/software/mca.html")

Mark Rivers
[Message index]
 
Read Message
Read Message
Previous Topic: enhanced container object
Next Topic: Re: Funny math?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 05:18:08 PDT 2025

Total time taken to generate the page: 0.64143 seconds