当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP IsReady 属性

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 IsReady 属性


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

The IsReady property returns true if a specified drive is ready and false if not.
ASP IsReady属性的作用是:如果指定的驱动器已准备完毕,那么该属性输出True逻辑真;否则输出False逻辑假。

Syntax
语法

DriveObject.IsReady

Example
举例

<%
dim fs,d,n
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("a:")
n = "The " & d.DriveLetter
if d.IsReady=true then n=n & " drive is ready!"
else n=n & " drive is not ready!"
end if
Response.Write(n)
set d=nothing
set fs=nothing
%>

Output:

The A drive is not ready!

评论 (0) All

登陆 | 还没注册?