Appends one path to another formatting the paths according to the optional systemtype parameter. If the systemtype is not specified, then the system type is taken from the Endpoint currently on the stack. If no Endpoint is on the stack, an exception is thrown.
append is also a method that can be called on an Endpoint object. In this case, the system type is taken from the Endpoint itself.
append(path1, path2 [, systemtype])
String: The result of appending path2 to path1, formatted according to the specified systemtype or the system type of the Endpoint object.
set res = append('/tmp', 'file.txt', 'unix');
// res is /tmp/file.txt
set res = append(@'C:\Temp', 'file.txt', 'windows');
// res is C:\Temp\file.txt
set res = append('$2$DKA200:[FERDU01]', 'file.txt', 'vms');
//res is $2$DKA200:[FERDU01]file.txt