国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

將指定的asp文件內容生成HTML文件

2019-11-18 19:27:01
字體:
來源:轉載
供稿:網友

<%
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="http://www.taiang.com.cn/index.asp"
response.write "開始更新首頁..."
wstr = GetPage(Url)

Set fs=Server.CreateObject("Scr'MyFile.CreateFolder(server.MapPath("/html/"))'
'end if

If (fs.FileExists(server.MapPath("./")&"/index.htm")) Then
fs.DeleteFile(server.MapPath("./")&"/index.htm")
End If

Set CrFi=fs.CreateTextFile(server.MapPath("./")&"/index.htm")
Crfi.Writeline(wstr)
set CrFi=nothing
set fs=nothing
response.write "...<font color=red>更新完成!</font>"
%>


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 佳木斯市| 秀山| 修文县| 彩票| 星子县| 邵阳市| 赫章县| 凤阳县| 乌拉特前旗| 西城区| 高平市| 华池县| 漳浦县| 中卫市| 长葛市| 高陵县| 门源| 阿克陶县| 镇远县| 平原县| 历史| 洛扎县| 深州市| 靖远县| 古田县| 罗城| 冀州市| 镇远县| 哈尔滨市| 上蔡县| 武邑县| 靖西县| 丘北县| 金昌市| 旌德县| 吉首市| 珲春市| 广平县| 九龙县| 泾源县| 育儿|