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

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


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

The BuildPath method appends a name to an existing path.
ASP BuildPath的作用是向现有的路径中添加一个名称。

Syntax
语法

[newpath=]FileSystemObject.BuildPath(path,name)

Parameter参数 Description描述
path Required. The path to append a name to
必要参数。需要添加名称的路径
name Required. The name to append to the path
必要参数。需要给路径添加的名称

Example
举例

<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.BuildPath("c:mydocuments","test")
response.write(path)
set fs=nothing
%>

Output:

c:mydocumentstest

评论 (0) All

登陆 | 还没注册?