当前位置: 首页 > 图文教程 > 网络编程 > ASP > 简单的文件目录浏览源程序

ASP
无刷新随时取得用户当前活动信息
编写一个asp代码执行器
利用XSL和ASP在线编辑XML文档
ASP应用:用stream读文件
如何用Asp动态生成xml文件
实例演练ASP+XML编程(1)
实例演练ASP+XML编程(2)
实例演练ASP+XML编程(3)
实例演练ASP+XML编程(4)
用文件写入建立简单的网上调查
轻松打造ASP计数器
用纯ASP代码实现图片上传
“在线访客”的制作方法
如何开发基于ASP的FLASH MX在线图象浏览器
ASP图形计数器设计详解
ASP+VML+DB实现投票统计项目
ASP中DLL的调试环境配置全攻略
一个实用的FSO-实时统计在线人数
ASP实现语音分时问候
利用ASP打造网站论坛DIY

ASP 中的 简单的文件目录浏览源程序


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 60 ::
收藏到网摘: n/a

 
    '**************************************
    ' Name: File / Directory Viewer
    ' Description:This Will Display All The
    '     Files, File Size and file date of every
    '     file in the directory you specify.
    To make this work, paste the code into your favorite html editor, save it and Then view it.
    ' By: Thomas Michael
    '
    '
    ' Inputs:None
    '
    ' Returns:None
    '
    'Assumes:File System Object Be Needed :)
    '     and it is setup to look for you my docum
    '     ents folder at "c:\mydocu~1" but you can
    '     change the line of code to look in any d
    '     irectory.
    '
    'Side Effects:None
    '
    'Warranty:
    'code provided by Planet Source Code(tm)
    '     (http://www.Planet-Source-Code.com) 'as
    '     is', without warranties as to performanc
    '     e, fitness, merchantability,and any othe
    '     r warranty (whether expressed or implied
    '     ).
    'Terms of Agreement:
    'By using this source code, you agree to
    '     the following terms...
    ' 1) You may use this source code in per
    '     sonal projects and may compile it into a
    '     n .exe/.dll/.ocx and distribute it in bi
    '     nary format freely and with no charge.
    ' 2) You MAY NOT redistribute this sourc
    '     e code (for example to a web site) witho
    '     ut written permission from the original
    '     author.Failure to do so is a violation o
    '     f copyright laws.
    ' 3) You may link to this code from anot
    '     her website, provided it is not wrapped
    '     in a frame.
    ' 4) The author of this code may have re
    '     tained certain additional copyright righ
    '     ts.If so, this is indicated in the autho
    '     r's description.
    '**************************************
    
    <%@ LANGUAGE="VBSCRIPT" %>
    <% Option Explicit %>
    <HTML>
    <HEAD> <TITLE>File Viewer</TITLE> </HEAD>
    <BODY>
    <TABLE width="100%" border=1 bordercolor="#000000" align="left" cellpadding="2" cellspacing="0">
    <TR align="left" valign="top