DECLARE INTEGER GetFileNameFromBrowse IN shell32; INTEGER hwnd,; STRING @ pszFilePath,; LONG cchFilePath,; STRING pszWorkingDir,; STRING pszDefExt,; STRING pszFilters,; STRING szTitle cFilename = SPACE(512) + CHR(0) nBufsize = 250 cPath = "e:\ges24\" cExt= CHR(0) cFilter = CHR(0) cTitle = CHR(0) =GetFileNameFromBrowse(0, @cFilename, nBufsize,; cPath, cExt, cFilter, cTitle) ? cFileNameUPDATE: You may also want to look at the WideCharToMultiByte API. Because the filename and path that the above function returns has too many spaces in it.