/**
* script: dlwebpage.js
* purpose: downloads the webpage specified by 'url'
* author: daren thiel
* date: 17 may 1999
*
* note: rename this script dlwebpage.js
* web: http://www.winscripter.com
* copyright 1999 daren thiel
**/
// the url to download
var url = "http://www.aboutnt.com/default.htm"
// create instance of inet control
inet = new activexobject("inetctls.inet");
// set the timeout property
inet.requesttimeout = 20;
// set the url property of the control
inet.url = url;
// actually download the file
var s = inet.openurl();
// show the raw html to the user
wscript.echo( s );
// bonus - find the title of the page
// regular expression to find the string stored between
// the title tags.
rtitle = /<title>(.*)<\/title>/i;
// execute the regular expression on the raw html
var title = rtitle.exec( s );
// display the result
wscript.echo( regexp.$1