当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP FolderExists 方法

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP FolderExists 方法


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

The FolderExists method returns a Boolean value that indicates whether a specified folder exists. It returns True if the folder exists and False if not.
FolderExists返回的是一个逻辑值(Boolean),用它来确定指定的文件夹是否存在。如是True真,则表示存在;如是:False假,则表示不存在。

Syntax
语法

FileSystemObject.FolderExists(foldername)

Parameter参数 Description描述
foldername Required. The name of the folder to check if exist
必要参数。通过文件夹名检查该文件是否存在

Example
举例

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FolderExists("c:asp")=true then response.write("Folder c:asp exists!")
else response.write("Folder c:asp does not exist!")
end if
set fs=nothing
%>

评论 (0) All

登陆 | 还没注册?