当前位置: 网学 > 编程文档 > ASP > 正文

FileSystem对象常用的文件操作函数有哪些?

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 13/06/17

鉴于大家对ASP十分关注,我们编辑小组在此为大家搜集整理了“aspvbscript编码模板”一文,供大家参考学习!

<!-- METADATA
TYPE="typelib"
FILE="C:\Program Files\Common Files\System\ADO\msado20.tlb"
-->

<%@ Language=VBScript %>
<%Option Explicit%>

<%
''加入的文件
%>
<!-- #include virtual|file="需要包含的文件" -->

<%
''代码版权说明:
''=========================================================
'' File: 文件名.asp
'' Version:1.0
'' Date:
'' Script Written by Tommy xiao
'' Description:
''
'' Revision:
'' Date:
'' Author:
'' Description:
''=========================================================
'' Copyright (C) 2003 Asiagame.Com. All rights reserved.
'' Web: http://www.advancededu.com
'' Need help? Contact: xds2000@msn.com
''=========================================================
%>
<%
''容错机制代码
''--------------------------------
DIM NDEBUG_MSG
NDEBUG_MSG=FALSE

IF NDEBUG_MSG = TRUE THEN
''出错过滤
ON ERROR RESUME NEXT
END IF

''变量声明及定义区
''Boolean error variant
Dim BlnFounderr,sErrmsg
BlnFounderr = FALSE
''触发错误信息
''sErrmsg=sErrmsg+"<br>"+"<li>没有找到您需要的信息,欢迎使用。"
''BlnFounderr = TRUE

Dim oConn,oRs,sSQL ''ADO objects

''Set oConn = Server.CreateObject ("ADODB.Connection")
'' oConn.Open Application("connStr")

''事务定义区



''输出错误
If BlnFounderr = TRUE Then
mError()
End If

''Func,Proc定义区
Function DealInput(exp1)
dim exp2 ''Filter input for invalid characters
exp2=Replace(exp1,"<","<")
exp2=Replace(exp2,">",">")
exp2=Replace(exp2,"''","''''")
exp2=Replace(exp2,"&","&")
DealInput=exp2
End Function

Function CloseDatabase '' CloseDatabase
oConn.close
Set oConn = Nothing
End Function

sub mError()
''Response.Write sErrmsg&"please contact system administrator."
response.write " <html>" & vbCrLf
response.write " <head>" & vbCrLf
response.write " <title>xxx站点--WEB后台管理</title>" & vbCrLf
response.write " <meta NAME=""GENERATOR"" Content=""Microsoft Visual Studio 6.0"">" & vbCrLf
response.write " <link rel=""stylesheet"" type=""text/css"" href=""css/index.css"">" & vbCrLf
response.write " <script type=""text/javascript"" src=""js/fx.js""></script>" & vbCrLf
response.write " <script type=""text/javascript"" src=""js/cooltool.js""></script>" & vbCrLf
response.write "" & vbCrLf
response.write " </head>" & vbCrLf
response.write "" & vbCrLf
response.write " <body>" & vbCrLf
response.write " <table cellpadding=""0"" cellspacing=""0"" border=""0"" width=""95%"" bgcolor=""#777777"" align=""center"">" & vbCrLf
response.write " <tr>" & vbCrLf
response.write " <td>" & vbCrLf
response.write " <table cellpadding=""3"" cellspacing=""1"" border=""0"" width=""100%"">" & vbCrLf
response.write " <tr align=""center""> " & vbCrLf
response.write " <td width=""100%"" bgcolor=""#EEEEEE"">内部管理操作错误信息</td>" & vbCrLf
response.write " </tr>" & vbCrLf
response.write " <tr> " & vbCrLf
response.write " <td width=""100%"" bgcolor=""#FFFFFF""><b>产生错误的
  • 下一篇资讯: asp显示日历效果
  • 网学推荐

    免费论文

    原创论文

    浏览:
    设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
    版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
    湘ICP备09003080号