declaration function SelectDirectory(const Caption; const Root : widestring; out Directory: string): boolean;
description
SelectDirectory function brings up a dialog box ready for the user to select a directory name.
SelectDirectory function is an encapsulation of the BrowseForFolder Windows API function.
The dialog box includes an "OK" and a "Cancel" button, if the user presses the "Cancel" button the function returns False. If the user presses the "OK" button the function returns the directory selected in a Directory parameter. When the dialog is displayed it uses the Root parameter as the directory from which to browse. Caption is the message of the dialog, not the caption, the dilaog caption is "Browse For Folder".
example
var dir : widestring;
if SelectDirectory('My message','d:\!gajba',dir) then
showmessage('Folder selected ' + dir);
anladığıma göre 123 hatası olmayan dizine erişmeye çalışmakla ilgili verdiğin path değerinin defaultunu path:=null yerine path:= ExtractFilePath(Application.ExeName) dene.