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

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP DriveType 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 320 ::
收藏到网摘: 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

登陆 | 还没注册?