Combines two directory paths into one and returns the combined path. Adds a backslash between the base and relative directories.
Syntax
CombinePaths("BaseDirectory", "RelativePath")
Arguments
| Argument | Description |
|---|---|
| BaseDirectory | Base directory path. |
| RelativePath | Relative directory to combine with the base directory path. |
Return value
| Value | Description |
|---|---|
| Value | Combined directory path. If one path is a zero-length string, the other path is returned. If the second path argument is an absolute path, the absolute path is returned. |
Example
FullPath = CombinePaths("C:\\Testing", "TestData")