VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Internet File Transfer From Website

webdataconsultants  (1 Submission)   Internet/HTML   Visual Basic 5.0   Advanced   Wed 3rd February 2021

This is a module for easily adding the ability to transfer a file from a webserver to a hard drive. Good for a "live update" type of functionality or for downloading banners to your program. By Erick Jones, https://www.webdataconsultants.com

Inputs
You must provide a URL of the source file and a filename for the downloaded file name

Assumes
First of all, this is a module. You'll have to add the module to your project. You also have to add a Microsoft Internet Transfer Control (and a Label1 Control if you are using the example below) to your form. EXAMPLE USAGE: Label1.Caption = "Getting File..." TransferFile = Xfer(Inet1, "http://www.webdata.addr.com/index.html", App.Path + "\index.html") Label1.Caption = InetStatus

Returns
InetStatus returns the status of the file transfer or an error if the transfer is unsuccessful.

API Declarations
Global TransferFile As Boolean
Global b() As Byte
Global InetStatus As String

Rate Internet File Transfer From Website (5(5 Vote))
Internet File Transfer From Website.bas

Internet File Transfer From Website Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters