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

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 DriveExists 方法


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

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

Syntax
语法

FileSystemObject.DriveExists(drive)

Parameter参数 Description描述
drive Required. A drive letter or a complete path specification
必要组件。设定驱动的字母或一个绝对路径

Example
举例

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

评论 (0) All

登陆 | 还没注册?