我爱Aspx >> Asp.Net >> 用ASP编写下载网页中所有资源的程序Function bytes2BSTR(vIn)
dim strReturn
dim i,ThisCharCode,NextCharCode
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bytes2BSTR = strReturn
End Function
function getFileName(byval filename)
if instr(filename,"/")>0 then
fileExt_a=split(filename,"/")
getFileName=lcase(fileExt_a(ubound(fileExt_a)))
if instr(getFileName,"?")>0 then
getFileName=left(getFileName,instr(getFileName,"?")-1)
end if
else
getFileName=filename
end if
end function
function getHTTPstr(url)
on error resume next
dim http
set http=server.createobject("MSXML2.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then exit function
getHTTPstr=Http.responseBody
set http=nothing
if err.number<>0 then err.Clear
end function
Function CreateDIR(ByVal LocalPath) '建立目录的程序,如果有多级目录,则一级一级的创建
On Error Resume Next
LocalPath = Replace(LocalPath, "\", "/")
Set FileObject = server.CreateObject("Scripting.FileSystemObject")
patharr = Split(LocalPath, "/")
Ҷƪл˵?
ASP程序性能测试报告[05-15]
Web服务器上防范基于ASP程序的木..[05-15]
利用ASP木马程序获取管理权限[05-15]
一个ASP木马程序的源代码[05-15]
一个ASP统计制作实例[05-15]
用文本+ASP打造新闻发布系统[05-15]
防范ASP木马的十大基本原则[05-15]
ASP木马的原理和基本防范方法[05-15]
用ASP木马实现FTP和解压缩[05-15]
在ASP程序中实现数据库事务控制[05-15]
ASP程序性能测试报告[05-15]
用ISAPIfilter使INC、ASA文件安全[05-15]
Web服务器上防范基于ASP程序的木..[05-15]
IIS服务器排错指南及错误代码大全[05-15]
利用ASP木马程序获取管理权限[05-15]
一个ASP木马程序的源代码[05-15]
一个ASP统计制作实例[05-15]
用文本+ASP打造新闻发布系统[05-15]
防范ASP木马的十大基本原则[05-15]
ASP木马的原理和基本防范方法[05-15]