<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
FilePath = Server.MapPath("/")&"/index.htm"
 'response.Write(FilePath)
 Do_Url = "http://"
 Do_Url = Do_Url&Request.ServerVariables("SERVER_NAME")&"/default.aspx"
 strUrl = Do_Url
 'response.Write(strUrl)
 dim objXmlHttp
 set objXmlHttp = Server.CreateObject("Microsoft.XMLHTTP")
 objXmlHttp.open "GET",strUrl,false
 objXmlHttp.send()
 Dim binFileData
 binFileData = objXmlHttp.responseBody
 Dim objAdoStream
 set objAdoStream = Server.CreateObject("ADODB.Stream")
 objAdoStream.Type = 1
 objAdoStream.Open()
 objAdoStream.Write(binFileData)
 objAdoStream.SaveToFile FilePath,2
 objAdoStream.Close()
 
 Response.Write("<script language=javascript>alert('首页静态转换成功!');</script>")
%>

相关文章:

  • 2021-09-20
  • 2022-03-05
  • 2021-09-25
  • 2022-12-23
  • 2021-05-30
猜你喜欢
  • 2022-01-08
  • 2022-01-15
  • 2022-12-23
  • 2021-06-19
  • 2021-08-07
  • 2022-03-09
  • 2021-07-30
相关资源
相似解决方案