PathCombine Procedure
Makes a filesystem path by combining multiple path components with slashes.
This function uses the slash character returned by
PathSeparator, which is specific to the user's operating system.
Trailing slashes in path components are ignored.
Declaration
function PathCombine(parts as List of String) as String
Parameters
- parts as List of String — A series of directory names and optionally a filename at the end.
Return value
String — Combined filesystem path.
Example
Code
print PathCombine(["C:", "Users\", "user", "Documents", "MyFile.txt"])
Output
C:\Users\user\Documents\MyFile.txt