• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

Winsock control

I know this question has probably been asked a million times, but i am looking for an easy way to download a file (such as an executable) from the web. It'd be nice if it supported ftp and http.
I only need it to gather from one source, but would like to make the downloads resumable. And if possible, but i could figure this out, source to incorporate a speed (___KB/sec) and a progress bar.
any help would be greatly appreciated

sorry that 60 points is all i can give
1 Solution
To download a file using the WebBrowser:

Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long

Private Sub Command1_Click()
    URLDownloadToFile 0, "http://www.experts-exchange.com", "YourFileName", 0, 0
End Sub
You should be able to connect with winsock on port 80 to like www.site.com
then use the get command to get the file like
sendmessage "GET /FILE.EXT"

Go to http://www.a1vbcode.com/search.asp

Type "winsock" in the search box (Located in top right corner) and click search.

There are plenty of downloads. You might find a nice one over there.



boss302_lpAuthor Commented:
sorry i have been away for a while, but thanks for your help
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now