人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

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

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

更新時間:2022-08-15 文章作者:未知 信息來源:網絡 閱讀次數:

<%
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("Scripting.FileSystemObject")

'if not MyFile.FolderExists(server.MapPath("/html/")) then
'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>"
%>

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 孝感市| 兴国县| 陕西省| 正镶白旗| 湘潭市| 宜春市| 仁怀市| 汾阳市| 隆尧县| 上林县| 万年县| 盱眙县| 文昌市| 抚松县| 陇西县| 余江县| 永丰县| 沁源县| 扎赉特旗| 从江县| 甘洛县| 巧家县| 周口市| 同心县| 肥东县| 磐安县| 滁州市| 中山市| 黎城县| 云龙县| 阜南县| 手游| 宁强县| 泾源县| 华宁县| 平南县| 义马市| 浪卡子县| 光山县| 中牟县| 含山县|