File.SetBaseName (gb)
Static Function SetBaseName ( Path As String, NewBaseName As String ) As String
Sets the base name 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.ext
* Try a path with two extensions
/my/path/file.ext1.ext2
/my/path/new-name.ext2
* A path with just an extension
.ext
new-name.ext
* A path without a file name
/my/path/.ext
/my/path/new-name.ext
* A path without a file name or extension
/my/path/
/my/path/new-name