国产探花免费观看_亚洲丰满少妇自慰呻吟_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>"
%>


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 滨州市| 同德县| 宁南县| 浠水县| 永修县| 金山区| 松滋市| 怀安县| 渑池县| 连州市| 安龙县| 唐河县| 禹州市| 新田县| 罗山县| 永德县| 乌兰察布市| 河津市| 新巴尔虎右旗| 兴安县| 六安市| 晋州市| 柳林县| 上犹县| 巢湖市| 睢宁县| 虞城县| 平顶山市| 视频| 民县| 水富县| 清丰县| 万源市| 卫辉市| 泉州市| 泾阳县| 湘西| 陵川县| 诸暨市| 温州市| 郓城县|