> And I love strtok() !! Same here, and rpos() too . . . Calculate directoryPath as mid(path,1,rpos(sys(9),path)) Calculate fileName as mid(path,rpos(sys(9),path)+1) Kelly