| 发表于:2007-07-26 15:45:321楼 得分:20 |
为啥一定要命令行程序? 用一个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 | | |
|