Removes everything except the last component of a path.
|Path||A path with or without command line parameters.|
The path without the directory.
The RemoveDirectory service returns the given path without the directory. Thus, it returns only the filename and extension. Quotes are preserved.
Note. This method supports paths that contain command line parameters. In this case, command line parameters are returned along with the filename and extension.
Result will be "filename.txt".