Skip to content
Related Articles

Related Articles

ASP BuildPath Method
  • Last Updated : 23 Feb, 2021

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
My Personal Notes arrow_drop_up
Recommended Articles
Page :