ASP BuildPathMethod


FileSystemObject 对象参考手册Complete FileSystemObject Object Reference Manual

The BuildPath method adds a name to an existing path.

Syntax

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

Parameters Description
path Required. The path to which the name is appended.
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:\mydocuments\test


FileSystemObject 对象参考手册Complete FileSystemObject Object Reference Manual Other Extensions