国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > 綜合 > 正文

同文件夾內(nèi)文本搜索器(vbs)

2024-07-21 02:15:41
字體:
供稿:網(wǎng)友


<html><head><title>同文件夾內(nèi)文本搜索器(vbs)</title>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<script language=vbscript id=clienteventhandlersvbs>
<!--
dim fso, f, f1, fc,fn,s,uf1,ufn
sub b1_onclick
fn=t1.value ''
pn=mid(location.pathname,2,len(location.pathname)-14)
showfolderlist(pn)
end sub

function showfolderlist(path)
''msgbox path
set fso = createobject("scripting.filesystemobject")
set f = fso.getfolder(path)
set fc = f.files
'' ufn=ucase(fn)
for each f1 in fc
filespec= path & f1.name
readentirefile(filespec)
'' uf1=ucase(f1.name)
'' if instr(uf1,ufn) <> 0 then
'' s=s & "<a href=" & path & f1.name & ">" & f1.name & "</a><br>"
'' end if
next
document.write "已搜索到以下條目,請單擊之。[墨伯編制 于2003年元月]<br>"
document.write s
set fc=nothing
set f=nothing
set fso=nothing
end function

function readentirefile(filespec)
const forreading = 1
dim fso, thefile, retstring
set fso = createobject("scripting.filesystemobject")
set thefile = fso.opentextfile(filespec, forreading, false)
ufn=ucase(fn)
do while thefile.atendofstream<> true
retstring = thefile.readline
uf1=ucase(retstring)
if instr(uf1,ufn) <> 0 then
s=s & "<a href=" & path & f1.name & ">" & f1.name & "</a><br>"
exit do
end if
loop
thefile.close
readentirefile = s
end function

-->
</script>
</head>
<body>
<p align=center><font color=#000000 size=6>請輸入要搜索[在正文中包含]的關(guān)鍵詞(</font><font
color=#000000 size=3>忽略大小寫</font><font color=#000000 size=6>)</font> </p>
<p align=center><font size=2><font color=#000000>[墨伯編制
于2003年1月5日]</font>&nbsp;</font> </p>
<p align=center><input name=t1><input type=button value=搜索! name=b1></p>
<p align=center>&nbsp;</p></body></html>


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 镇沅| 丰镇市| 平乡县| 屏边| 阿拉善右旗| 江达县| 施秉县| 托里县| 彰化县| 长沙县| 拜泉县| 华池县| 六盘水市| 马尔康县| 偃师市| 弥勒县| 策勒县| 巨鹿县| 绥德县| 新化县| 汤原县| 阿合奇县| 靖江市| 台北县| 大化| 龙山县| 榆林市| 平凉市| 望江县| 军事| 武乡县| 滨海县| 孟村| 景谷| 西林县| 武汉市| 宝鸡市| 中超| 桦川县| 同仁县| 民勤县|