ModifyPath - Modify a path in different ways and the print the result. The modification could for example be to remove the path part, or extracting the extension only. Useful for scripting. Usage: ModifyPath PATH/A,NOPATHPART/S,NOFILEPART/S,NOEXTENSION/S,ADDSLASH/S PATH The path to modify. NOPATHPART Modify it to have no path part. NOFILEPART Modify it to have no file part. NOEXTENSION Modify it to have no extension. ADDSLASH Add a trailing slash if required to make sure it is not treated as a file.