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

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


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

The DriveType property returns a value that indicates the type of a specified drive.
ASP DriveType属性的作用是返回指定驱动器的类型。

This property can return one of the following values:
所有的驱动器属性可以通过返回以下几个值来表示:

  • 0 = unknown
    0=未知
  • 1 = removable
    1=可移动装置
  • 2 = fixed
    2=固定装置
  • 3 = network
    3=网络
  • 4 = CD-ROM
    4=光驱
  • 5 = RAM disk
    5=随机存取存储器(一般即为内存)

Syntax
语法

DriveObject.DriveType

Example
举例

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("a:")
Response.Write("The drive type is: " & d.DriveType)
set d=nothing
set fs=nothing
%>

Output:

The drive type is: 1

评论 (0) All

登陆 | 还没注册?