File.SetName (gb)
Static Function SetName ( Path As String, NewName As String ) As String
Sets the file name part of a path, and returns the modified path.
Examples
[gb.markdown].Markup.ProcessCode.1104: Cannot load component 'gb.highlight': cannot find component
* A standard type of path
/my/path/file.ext
/my/path/new-name.new
* No extension in new name
/my/path/file.ext
/my/path/new-name
* A path with no file name
* You could end up with an invalid path
/my/path/
/my/new-name.new
* A path with only a file name
file.ext
new-name.new