JoinPaths

Description

Joins two paths together and simplifies them, for example joining a path with ../ will remove the last folder from the path. A forward slash will be added between them if necessary, if the first path ends in a forward slash and the second path starts with a forward slash then one will be removed to make a valid path. Any back slashes will be converted to forward slashes. The first path can be relative or absolute, the second path must be relative. This will not be checked.

Definition

string JoinPaths( szPath, szPath2 )

Parameters