Surf the Web from Yarn

From: Howard Schwartz (theo@ncal.verio.com)
Date: Mon, 27 Jul 1998 23:58:35 -0700 (PDT)

In previous posts I mentioned a special helper program that comes
with the html viewer, viewhtml, that allows one to start up a web
browser from yarn, in a dos box, within win95.

I noticed a far simpler way to do this that works for windows 3.1, and
should work for win 95 as well. It requires no special software.
And you can do it from REAL dos, not a dos box within windows.

It depends on an undocumented (or at least little known) feature of
both windows and most web browsers: You can feed them programs and
files as arguments when you start them up.

Simply hit the | simple, within yarn, for an article that contains
URLs. Then enter the following command:

win iexplore file://%f

Assuming win.com and iexpore.exe are in directories in your PATH variable.
What will then happen:

a) Windows will start up, running only one program: your browser
b) Your browser will start up (e.g., IE, netscape), and will load
your yarn article, as a local web page.
c) when you are done web browsing and exit the browser, both
the browser and windows will close. This is because the browser
program on the original command line, makes it act as the windows shell.
d) You will end up back in yarn (back in dos), at the very article you left.

Using a similar command in mail cap, you can make meta mail do this
automatically, for MIME encoded html files.

If you want to avoid the time it takes to start windows and/or start
a bloated browser like IE, you can run yarn from within a dos box,
and use the programs run and schedule. In that case the command
would be:
run iexplore file://%f

However, I dont like to work within windows unless I have to.
I've tried the above and it works like a charm. Hope this is useful.

be