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

URLDownloadToFile Question (using urlmon library)

Hi all,

I am currently using a download script called URLDownloadToFile:

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

For this download script, how do I ensure that a file is completely downloaded from the net? Currently there is no where I could gain any notification if I finish downloading a file. If anyone knows the script to put in to determine when the file is downloaded please reply :)

This is so I can alert users when files are downloaded :)

Thank you,

Melyee
0
melyee
Asked:
melyee
1 Solution
 
EDDYKTCommented:
have you tried this example

http://vbnet.mvps.org/index.html?code/internet/urldownloadtofile.htm


I'm not sure you can call this functionfrom script
0
 
melyeeAuthor Commented:
Great it works, thank you
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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