1) From DOS shell, <C:\>netscp "http://www.yahoo.com"> opens the page
in a new window of Netscape.
2) If I then press "Ctrl U", it opens another instance of Netscape
with the HTML source content of that page.
I want to do the 2nd step from DOS shell and save the HTML source
content as a .txt file.
Your help and hints would be very much appreciated.
Thanks.
Jamil.
One of the command shells I use on a regular basis, 4NT, supports
FTP and HTTP protocols natively in several commands. So it's
possible to do, for example:
copy "http://www.yahoo.com/index.html" %temp
Which makes a pretty handy way to download files without messing
around with a web browser or FTP client. It's also possible to
upload files via FTP, provided you have passwords granting
appropriate permissions.
4NT can be used in either the DOS-based Windows 98/Me or the non-
DOS-based Windows NT/2000/XP. It can not, however, be used in
"plain" DOS without a Win32 layer. If you're interested,
download a trial copy from http://jpsoft.com
--
Charles Dye ras...@highfiber.com
There may be more help in one of these groups. Search on subject first
snews://secnews.netscape.com/netscape.navigator For 3.x and earlier
snews://secnews.netscape.com/netscape.communicator For 'cator
snews://secnews.netscape.com/netscape.macintosh For all Mac
snews://secnews.netscape.com/netscape.communicator.unix
Since you are using some version of Win32, you might find WGET
(<http://sourceforge.net/project/showfiles.php?group_id=23617>) useful
(or it might not run). But if you really want to convert the HTML to
texr, lynx is probably the best approach - lynx is a command line
oriented, text mode browser that can be told to get a page and save it
as is or as rendered text (<http://lynx.browser.org/>).
T.E.D. (tda...@gearbox.maem.umr.edu)
SPAM filter: Messages to this address *must* contain "T.E.D."
somewhere in the body or they will be automatically rejected.
Thanks everyone again for your help.
Jamil.
Ted Davis <tda...@gearbox.maem.umr.edu> wrote in message news:<bujahvof401hac0k6...@4ax.com>...
>Hi All,
>It's time to express my thanks to you all for helping me finding a
>nice solution. Finally, Ted's solution worked perfectly to meet my
>requirements. Just downloaded "LYNX" and used it from the DOS command
>shell. To save a web page source in text format, just type the
>following from DOS shell:
> c:\>lynx -source "http://www.yahoo.com" > c:\myPage.txt
>
Actually, that saves it in its original form - it is a text file only
if that is what it is on the web. -dump saves html files as
(rendered) plain text.