Search notes:

System.IO.Path (class)

See also

IsPathRooted(path) returns true if path is absolute.
ChangeExtension() modifies a file name so that has a different extension.

Index