全站搜索
来源:互联网 发布:sql定义时间变量 编辑:程序博客网 时间:2024/04/30 19:15
<%
strText = Request("SearchText")
Const fsoForReading = 1
Dim objFile, objFolder, objSubFolder, objTextStream
strFile = ".asp .htm .html .txt .css"
strRoot = "/"
bolFileFound = False
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Server.MapPath(strRoot))
response.Write("<table><tr><td>文件名</td><td>最后修改时间</td><td>文件大少</td></tr>")
schSubFol(objFolder)
response.Write("</table>")
function schSubFol(objFolder)
For Each objFile in objFolder.Files
if (instr(strFile,mid(objFile.Name,InstrRev(objFile.Name,".")+1))) then
Set objTextStream = objFSO.OpenTextFile(objFile.Path,fsoForReading)
strContent = objTextStream.ReadAll
If instr(strContent,strText) then
objFilePath=mid(objFile.Path,InstrRev(objFile.Path,"/")+1)
Response.Write "<tr><td> " &objFilePath & "</td><td> " & FormatDateTime(objFile.DateLastModified,1) & "</td><td> " & FormatNumber(objFile.Size / 1024) & "Kbytes</td><tr>"
bolFileFound = True
End If
objTextStream.Close
end if
Next
End function
For Each objSubFolder in objFolder.SubFolders
schSubFol(objSubFolder)
Next
Set objTextStream = Nothing
Set objFolder = Nothing
Set objFSO = Nothing
%>
- 全站搜索
- 全站关键字搜索
- 静态网站全站搜索功能
- phpcmsv9全站搜索,不限模型
- phpcms v9不限模型全站搜索
- 全表搜索
- Google搜索全攻略
- 全表搜索字符串
- 全路径搜索策略
- 全码倍数搜索
- phpcms v9怎么在后台实现全站搜索,而不是按照栏目来搜索
- advancedsearch高级搜索 全匹配搜索
- GOOGLE搜索秘籍全攻略
- 全表搜索字符串[转]
- SQL Server 全数据库搜索
- 搜索、Office和云安全
- Openerp 实现全表搜索
- 块匹配算法-全搜索
- 模仿Windows的文本框右键菜单
- Console.WriteLine(7.88 + 5.00 - 12.88); 结果为True还是False?
- 12/19一篇ExpressQuantumGrid安装及汉化,比较详细
- 搜索引擎设计实用教程-以百度为例(二)
- 最佳ASP.NET编程习惯 [ 来自:动态网站制作指南 ]
- 全站搜索
- 经验共享:介绍网卡调整过程中的 一些另类小技巧
- 工作一个月了!
- Hanzi Wang
- cjk和unicode之间的转换问题
- 如何让你的SQL运行得更快
- The Joel Test: 软件开发成功 12 法则 (转贴)
- file的读取
- 【程序19】