Open In App

ASP BuildPath Method

Last Updated : 23 Feb, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

The ASP BuildPath Method is used to appends or adding a name  of the file to a existing path. It is a predefine method of the file system object.

Syntax:

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

Parameter Value:

  • path: it specifies a existing path that  will append a name of the file to it.
  • name: it specifies the name of the file that will be appended to the existing path.

Example code below code demonstrate the Bill Path Method

<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.BuildPath("d:\myfiles","hello")
response.write(path)
set fs=nothing
%>

Output:

d:\myfiles\hello

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads