J
Joe Caverly
Hi,
As an old-timer who still likes the DOS Prompt, and still likes to
tinker, I thought I'd share a way to view web pages in DOS using a
batch file, and mostly freeware.
First, here's a batch file that I use to see the news headlines;
graburl http://www.ctv.ca/generic/generated/news/TopStories.html >
c:\temp\results.txt
htmstrip c:\temp\results.txt /Width=80
list c:\temp\results.out
Note that the lines may wrap in this message.
The first utility, graburl, is available from
http://www.kiraly.com/software/utilities/graburl/
It allows one to grab a web page, and display it on the screen, or in
this case, redirect it to a file.
The next utility, htmstrip, is available from
http://www.erols.com/waynesof/HTMS0208.ZIP
This allows one to filter the HTML out of the web page, and save the
non-HTML page to a text file.
The next utility is list. Now, you can substitute;
more < results.out
if you don't have a list program. You may get some line-wrapping
using the more command. As I use 4DOS, list is built-in.
This batch file and utilities work on my system, which is running
Win98SE, and 4DOS 6.02B. The batch file also works in a plain MS-DOS
Prompt Window.
Joe
http://groups.yahoo.com/group/JoeCaverlysProgrammingStuff/
As an old-timer who still likes the DOS Prompt, and still likes to
tinker, I thought I'd share a way to view web pages in DOS using a
batch file, and mostly freeware.
First, here's a batch file that I use to see the news headlines;
graburl http://www.ctv.ca/generic/generated/news/TopStories.html >
c:\temp\results.txt
htmstrip c:\temp\results.txt /Width=80
list c:\temp\results.out
Note that the lines may wrap in this message.
The first utility, graburl, is available from
http://www.kiraly.com/software/utilities/graburl/
It allows one to grab a web page, and display it on the screen, or in
this case, redirect it to a file.
The next utility, htmstrip, is available from
http://www.erols.com/waynesof/HTMS0208.ZIP
This allows one to filter the HTML out of the web page, and save the
non-HTML page to a text file.
The next utility is list. Now, you can substitute;
more < results.out
if you don't have a list program. You may get some line-wrapping
using the more command. As I use 4DOS, list is built-in.
This batch file and utilities work on my system, which is running
Win98SE, and 4DOS 6.02B. The batch file also works in a plain MS-DOS
Prompt Window.
Joe
http://groups.yahoo.com/group/JoeCaverlysProgrammingStuff/