Use an API download file, HTTP

xiaoxiao2021-04-07  364

WinAPI: Function Long UrldownloadTofile (Long Caller, String Url, String FileName, Long Reserved, Long FNCB) Library "URLMON" Alias ​​for "URLDOWNLOADTOFILEA" example: Integer li_returnstring ls_address

// URL

Ls_address = "http://127.0.0.1/test/test.zip"

LI_RETURN = URLDOWNLOADTOFILE (0, LS_ADDRESS, "C: / Test.zip", 0, 0) MessageBox ('', li_return)

转载请注明原文地址:https://www.9cbs.com/read-132609.html

New Post(0)