Extracts the filename with extension, if there is one.
|Path||A path with or without command line parameters.|
The filename with the path.
The GetFilename service extracts the last non-directory portion of a path, with the extension if there is one. If Path ends with a backslash, then the nothing is returned because a path ending in a backslash is assumed to be a directory.
Note. This method supports paths that contain command line parameters. In this case, command line parameters are simply ignored.
Result1 will be "filename.txt". Result2 will be "path3".