ExpandFileName¶ Returns the absolute form of a path. $ wo 'StringTake[ExpandFileName["test.txt"], -8]' test.txt