DOWNLOAD function

Purpose: The function will connect to the Internet and download the file specified in Url$ to the path\filename specified in the LocalFileName$ parameter. The runtime code dynamically loads URLMON.DLL, a Windows System DLL, and declares a function from within.


 Syntax:

 RetVal% = DOWNLOAD(Url$, LocalFileName$)

 Parameters:

  • RetVal% Returns 1 if function succeeded, 0 if it did not succeed.
  • Url$ URL to the file which is to be downloaded.
  • LocalFileName$ Name of file to which the download is to be saved.

BCX Console Sample Programs using the DOWNLOAD function.

S137.bas