Pascal Scripting: PathCombine

Prototype:

function PathCombine(const Dir, Filename: String): String;

Description:

Combines a directory and file name into a single path. If Filename is empty the result is an empty string. If Filename already starts with a drive letter or slash it is returned unchanged. Otherwise a single backslash is inserted between Dir and Filename when needed.