The openfiles API function returns (multiselect) the path plus the file names with nullcharacter in between. However, if only one file is selected, it returns the path and the file name together in one single line (full path). What would be the easiest way of removing the path and the name? I have done something but it seams to me that there must be a cleaner way of doing this. Has anyone done something similar. Help would be greatly appreciated.