Method: BuildPath for FileSystemObject
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Methods > Method: BuildPath for FileSystemObject
Method: BuildPath for FileSystemObject
Adds a name to a path.
sBuildPath = Object.BuildPath(Path, Name)
| Object | FileSystemObject Object with this method |
| Path | String 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. |
| Name | String Specifies the name which DIAdem appends to the path. |
| sBuildPath | String 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