Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Extracts the filename with extension, if there is one.

Syntax

Code Block
DirectoryFilename = SRP_Path("GetFilename", Path)

...

Code Block
Path = "C:\path1\path2\path3\filename.txt"
Result1 = SRP_Path("GetFilename", Path)
Result2 = SRP_Path("GetDirectoryGetFilename", SRP_Path("RemoveBackslash", SRP_Path("GetDirectory", Path))

Result1 will be "filename.txt". Result2 will be "path3".

See Also

GetComponents, GetExtension GetDirectory, GetExtension, GetParameters, GetPath, RemoveFilename