Latest web development tutorials

méthode ASP Buildpath

FileSystemObject Object Reference Complete FileSystemObject Object Reference

méthode Buildpath pour ajouter le nom à un chemin existant.

grammaire

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

参数 描述
path 必需的。要追加名称的路径。
name 必需的。追加到路径的名称。

Exemples

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

输出:

c:\mydocuments\test


FileSystemObject Object Reference Complete FileSystemObject Object Reference