ASP BuildPathMethod
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
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
Complete FileSystemObject Object Reference Manual Other Extensions