DIAdem Help

Method: BuildPath for FileSystemObject

  • Updated2024-09-12
  • 1 minute(s) read

Method: BuildPath for FileSystemObject

Adds a name to a path.

sBuildPath = Object.BuildPath(Path, Name)
ObjectFileSystemObject
Object with this method
PathString
Specifies the path to which DIAdem appends a name. If necessary, the BuildPath method adds an additional path separator between the path and the name. The path must not correspond with an existing folder.
NameString
Specifies the name which DIAdem appends to the path.
sBuildPathString
Receives the combined results path.

The following example appends the name NewFolder to a path:

Function BuildNewPath(sPath)
  Dim fso
  Set fso = CreateObject("Scripting.FileSystemObject")
  BuildNewPath = fso.BuildPath(sPath, "NewFolder") 
End Function

Log in to get a better experience