ASP BuildPath method
BuildPath method to add the name to an existing path.
grammar
[newpath=]FileSystemObject.BuildPath(path,name)
参数 | 描述 |
---|---|
path | 必需的。要追加名称的路径。 |
name | 必需的。追加到路径的名称。 |
Examples
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.BuildPath("c:\mydocuments","test")
response.write(path)
set fs=nothing
%>
输出:
c:\mydocuments\test
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.BuildPath("c:\mydocuments","test")
response.write(path)
set fs=nothing
%>
输出:
c:\mydocuments\test
Complete FileSystemObject Object Reference