' stripdir.bmx print stripdir("mypath/myfile.bmx") 'prints myfile.bmx