2,722
社区成员
发帖
与我相关
我的任务
分享
*VFP API-另存网页为文件
*------------------------
lcRemoteUrl = "http://www.163.com"
lcLocalFile = "c:\xxx.htm"
Declare Integer DeleteUrlCacheEntry In Wininet.Dll String szUrl
Declare Integer URLDownloadToFile In urlmon.Dll Integer pCaller,String szURL,;
String szFileName,Integer dwReserved,Integer lpfnCB
=DeleteUrlCacheEntry(lcRemoteUrl) &&清理缓存
If URLDownloadToFile(0,lcRemoteUrl,lcLocalFile,0,0)<>0
Messagebox('读取数据失败!',48,'信息提示')
Return
Endif
*VFP API-另存网页为文件
*------------------------
lcRemoteUrl = "http://www.163.com"
lcLocalFile = "c:\xxx.htm"
Declare Integer DeleteUrlCacheEntry In Wininet.Dll String szUrl
Declare Integer URLDownloadToFile In urlmon.Dll Integer pCaller,String szURL,;
String szFileName,Integer dwReserved,Integer lpfnCB
=DeleteUrlCacheEntry(lcRemoteUrl) &&清理缓存
If URLDownloadToFile(0,lcRemoteUrl,lcLocalFile,0,0)<>0
Messagebox('读取数据失败!',48,'信息提示')
Return
Endif