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

One Response to Two ways to call a URL from a batch

  • Cristiano says:

    Hi!
    First of all, thank you and compliments for your work!
    I’m writing to you becouse I need your help: I a newbie in VB
    programming and I’m totally confused in using libcurl il VB6.
    I’m trying to send a multipart form data (3 xml files) to a remote host.
    Using cUrl.exe by a external call (curl.exe -F config=@file1.xml -F
    index=@file2.xml -F exec_options=@file3.xml http://remote host) it
    works but I don’t actually know how to do the same using libcurl.
    I have problem in installing libcurl so that I can use it in VB6.
    Please, can you help me?
    Thank you in advance!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">