VBScript » FileSystemObject » BuildPath

Version: 2.0

Syntax:
[newfullpath = ]object.BuildPath(path, name)
name
Receives the name that will be appended to path.
path
Receives the path that will be joined with name

This method is used to append a name onto an existing path.

The format of the new path is 'existingpath\name'.

Examples

Code:
<%
dim filesys, newfullpath
set filesys=CreateObject("Scripting.FileSystemObject")
newfullpath = filesys.BuildPath(c:\inetpub\wwwroot, "images")
%>
Output:
"c:\inetpub\wwwroot\images"