August 1, 2007

Two ways to call a URL from a batch

Sometimes it’s useful to extract a web page to a file from a Windows batch.

For example I have a batch file that downloads financial figures every day, processes them and updates a database.

vbcurl http://myfinancialfigures.com/something.php >mydatafile.htm

If you don’t have a copy of Opera handy use a statement like the following to read the source from a page that blocks right click:-

vbcurl http://annoyingwebsitesthat.com/blockrightclicks.php >secret_source.htm

Vbcurl

Post a Comment