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