Returns trailing name component of path
basename <strvar> <path>
Given a <path> string containing the path to a file or directory, this macro will return the trailing name component into the <strvar> variable name.
The file or directory will need not be existed.
basename fname 'c:\teraterm\test.txt' ; fname = "test.txt"