2022年继Asp硬盘搜索后的硬盘文件罗列程序源码精华教程.docx
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《2022年继Asp硬盘搜索后的硬盘文件罗列程序源码精华教程.docx》由会员分享,可在线阅读,更多相关《2022年继Asp硬盘搜索后的硬盘文件罗列程序源码精华教程.docx(11页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、2022年继Asp硬盘搜索后的硬盘文件罗列程序源码精华教程继上次那篇后,又几个挚友问我,怎么将硬盘上的文件都搜寻到,并排列打印出来,我水平菜,当然没作出来,不过网上已经有高人早作出来了.发出来让大家一起参考.下面的这个脚本似乎危害比较大,可以搜寻到c:/winnt这样的系统书目,程序在 win 2k Sp4+ IIS+ Ntfs的磁盘格式下测试通过.程序也许有250行:贴个下载地址:<%'服务器超时设置Response.Buffer = FalseServer.ScriptTimeOut = 9999' 错误处理On error Resume next%><h
2、tml><head><title>:. 硬盘书目排列脚本 .:</title><STYLE type=text/css>Body {FONT-SIZE: 12px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif}A {COLOR: #000000; TEXT-DECORATION: none}</STYLE></head><body><form action=? method=post>书目: &l
3、t;input type=text name=ListPath size=20>比如:d:/WEB(留意书目是否存在,可以跨盘符)<br>类型: <input type=text name=FileType size=20>.asp(留意不要遗忘.)<br>层数: <input type=text name=Depth size=20>(1 2 3 这样的数字)<br>参数: <input type=checkbox name=Param value=file checked> 列文件 <input type=
4、checkbox name=Param1 value=txtlog checked> 生成txt <input type=checkbox name=Param2 value=scrout checked> 屏幕输出<br> <input type=submit value= 发 送 ></form><script language=JavaScript><!-window.status = 书目排列脚本function document.onstop(){window.status = 排列书目中断!windo
5、w.setTimeout(window.clearInterval(Timer);, 1000);}/-></script><%Dim ListPath, Depth, CurDepthListPath = Replace(Request.Form(ListPath), /, )If Not ListPath = Empty Then%><script language=JavaScript><!-window.status = 服务器正在列书目,请稍候 .Timer = window.setInterval(window.scroll
6、(0, document.body.scrollHeight);, 50);/-></script><% If Right(ListPath, 1) <> Then ListPath = ListPath If Not Request.Form(Depth) = Then Depth = Int(Request.Form(Depth) FileType = LCase(Request.Form(FileType) Param = Request.Form(Param) Param1 = Request.Form(Param1) Param2 = Reques
7、t.Form(Param2) Set ListParentObject = Server.CreateObject(Scripting.FileSystemObject) If Len(ListPath) <= 4 Then '检查路径d:/ 最少不能小于4,检查驱动器路径 If ListParentObject.DriveExists(ListPath) Then Set ListDriveObject = ListParentObject.GetDrive(ListPath) If ListDriveObject.IsReady = True Then Set ListPat
8、hObject = ListDriveObject.RootFolder Else errmsg = <br>对不起,当前驱动器未打算就绪! ErrOccur(errmsg) Response.End End If Else errmsg = <br>对不起,当前驱动器不存在! ErrOccur(errmsg) Response.End End If Else '检查路径是否存在 If ListParentObject.FolderExists(ListPath) Then Set ListPathObject = ListParentObject.GetFol
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022 Asp 硬盘 搜索 文件 罗列 程序 源码 精华 教程
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内