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

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


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

The GetDrive method returns a Drive object that is specified by the drivespec parameter.
ASP GetDrive 的作用是返回驱动器参数指定的一个驱动器对象。

Syntax
语法

FileSystemObject.GetDrive(drivespec)

Parameter参数 Description描述
drivespec Required. Can be a drive letter (c), or a drive letter followed by a colon (c:), or a drive letter followed by a colon and path separator (c:), or any network share specification (\computer2share1)
必要参数。形式可以是驱动器字母(c),或者是起动器字母后跟一个冒号(c:),或者是驱动器字母后跟一个冒号,在跟一个路径分隔符(c :),或者是一个网络共享符(\computer2share1)

Example
举例

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
set fs=nothing
%>

评论 (0) All

登陆 | 还没注册?