在线查找/正则替换文件中文本的网页接口(asp)
<%
response.Charset = "gb2312"
dim passText
passText = "xxyyaabb" '检验用的密码字符串
sub mygetfolder(ByVal path)
dim fp,fd
On Error Resume Next
set fp = fso.getFolder(path)
if Err.Number > 0 then
response.write(path & " <font color=red>获取目录句柄失败.终止页面:" & Err.description & "</font><br>")
response.end
else
response.write(path & " 获取目录句柄成功!<br>")
end if
On Error GoTo 0
if fp.name = request("bkFolder") then
response.write(path & " 备份文件夹中文件不必处理<br>")
exit sub
end if
response.write(path & "\ 正在处理...<br>")
dim newPath, newType, EName
newPath = ""
newType = ""
for each fd in fp.SubFolders
newPath = newPath & ",""" & replace(path, "\", "\\") & "\\" & fd.Name & """"
next
if newPath <> "" then
相关文档:
HTML:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
PHP:
header("Expires: Mon, 26 Jul 1997 ......
IIS无法访问asp!
解决办法!今天打开电脑发现IIS无法访问asp页面。
提示:Server Application Error 然后就有了下面的一段话。
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact ......
由于现在在公司负责制作标准的静态页面,为了增强客户体验,所以经常要做些AJAX效果,也学你也和我一样在,学习AJAX。而设计AJAX时使用的一个重要的技术(工具)就是XMLHTTPRequest对象了。这里海啸把我学习XMLHTTPRequest对象的一点资料拿出来跟大家一起分享。文中的资料都是海啸在学习时在网上收集的,如果您开过,那就再 ......
<%
'*******************************************************
'函数名:CreateFolder(sPath)
'作 用: 创建目录
'参 数:sPath : 创建的相对目录路径
& ......