<!--#include file="../../../conn/conn.asp"-->
<%
Function GetPage(url)
dim Retrieval
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Get", url, False ', "", ""
.Send
GetPage = BytesToBstr(.ResponseBody)
End With
Set Retrieval = Nothing
End Function
Function BytesToBstr(body)
dim objstream
Set objStream = Server.CreateObject("ADODB.Stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = "GB2312"
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
on error resume next
Url=""&weburl&"jsp_mb/index_mb.asp"
wstr = GetPage(Url)
Set fs=Server.CreateObject("Scripting.FileSystemObject")
If (fs.FileExists(server.MapPath("/index.html"))) Then
fs.DeleteFile(server.MapPath("/index.html"))
End If
Set CrFi=fs.CreateTextFile(server.MapPath("/index.html"))
Crfi.Writeline(wstr)
set CrFi=nothing
set fs=nothing
response.write "...<font color=red>生成网站首页完成!</font>"
%>
为什么会被卡巴杀掉啊。。。郁闷 谁遇到过这样的问题。。。。有没有什么好的解决方法