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

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


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

The GetDriveName method returns a string that contains the drive name of the specified path.
ASP GetDriveName的作用时返回包含指定路径所在的驱动器名称的一个字符串。

Syntax
语法

FileSystemObject.GetDriveName(path)

Parameter参数 Description描述
path Required. The path that will return a drive name
必要组件。输入路径,他将返回该路径所在的驱动器名称

Example
举例

<%
dim fs,dname
set fs=Server.CreateObject("Scripting.FileSystemObject")
dname=fs.GetDriveName("c:testtest.htm")
Response.Write(dname)
set fs=nothing
%>

Output:

c:

评论 (0) All

登陆 | 还没注册?