Removes everything except the last component of a path.
NewPath = SRP_Path("RemoveDirectory", Path) |
Parameter | Description |
---|---|
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.
Path = "C:\path1\path2\path3\filename.txt" Result = SRP_Path("RemoveDirectory", Path) |
Result will be "filename.txt".
GetDirectory. RemoveBackslash, RemoveExtension, RemoveFilename, RemoveParameters