Metodo BuildPath di ASP

Definizione e utilizzo

Il metodo BuildPath aggiunge un nome a un percorso esistente.

Sintassi:

[newpath=]FileSystemObject.BuildPath(path,name)
parametro descrizione
path obbligatorio. Il percorso a cui aggiungere il nome.
name obbligatorio. Il nome da aggiungere al percorso.

istanza

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