Sorry, I only realized now what CreateRelativePath() does. My sample code simply "trims" a long path for visual display - that is NOT the function or CreateRelativePath(). Sorry about the confusion. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/