![]() ![]() 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Ĭonst DownloadPath As String = "C:\Users\Zack\Desktop\" Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As LongPtr, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As LongPtr) As LongPtr Note there are no checks to see if the file exists and the destination folder is hard-coded (change to desired). It will save the name with the same name it has on the web. ![]() Below is an example of how you can download a list of files via their URL. I wouldn't qualify the question as "basic".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |