有没有可以下载程序的命令行程序?
像这样 DLOAD。EXE ”http://fdsa.com/aa.jpg“ ”c:\\aa\pp.jpg“
[解决办法]
为啥一定要命令行程序?
用一个API就可以了。
用法:
if DownloadToFile( "http://fdsa.com/aa.jpg ", "c:\aa\pp.jpg ") then
msgbox "下载成功 "
end if
代码:
-------------------------------------
Private Const ERROR_SUCCESS As Long = 0
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
Public Function DownloadToFile(ByVal sURL As String,ByVal sLocalFile As String) As Boolean
DownloadToFile = URLDownloadToFile(0, sURL, sLocalFile, 0, 0) = ERROR_SUCCESS
End Function