Announcement

Collapse
No announcement yet.

Automate file downloads from internet

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automate file downloads from internet

    I wrote a program that generates MegaMillions & SuperlottoPlus picks using past picks history that I download manually. I would like to automate this process from within my PB appilcation, but my understanding of internet communications is at best illiterate. I've looked at examples of TCPIP code, and have attempted to use. But have been unsuccessful to this point. Help Any and all suggestions will be greatly appreciated. Thanks.
    Make today the best day of your life :happy:
    Johnny G :wave:

  • #2
    Check out the simple URLDownloadToFile() API
    hellobasic

    Comment


    • #3
      Perfect!

      Edwin,
      thanks for taking the time to help. I really appreciate it. This is perfect, and as you indicated, simple!!! And best of all it works like a charm.:arco:
      Make today the best day of your life :happy:
      Johnny G :wave:

      Comment


      • #4
        FYI, from the comments on MSDN:
        Works with local IE cache.

        If the file was changed on server, this method does not get the new file. The download will start from local IE cache. With 'DeleteUrlCacheEntry' it is possible to clear such cached data before getting the actual file.
        I had a similar question a few months ago. You might find the discussion of interest:

        http://www.powerbasic.com/support/pb...ad.php?t=40077
        Bernard Ertl
        InterPlan Systems

        Comment

        Working...
        X