ASP BuildPath Method

Definition and Usage

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 to be appended.
name Required. The name to append to the path.

Instance

<%
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