DECLARE INTEGER URLDownloadToFile IN urlmon.DLL;&&&API函数
INTEGER pCaller, STRING szURL,;
STRING szFileName, INTEGER dwReserved,;
INTEGER lpfnCB
LOCAL cremotefile, clocalfile, nresult
cremotefile ="
http://" &&文件网络地址
clocalfile = "
tmp.ymg"&&将文件保存在本地硬盘上
nresult = urldownloadtofile(0, cremotefile, clocalfile, 0,0)