Ver Mensaje Individual
  #3  
Antiguo 15-08-2008
golf2008 golf2008 is offline
Miembro
 
Registrado: feb 2008
Posts: 151
Reputación: 17
golf2008 Va por buen camino
Gracia Neftali. Pero la mejor solución que encontré es la siguiente:

procedure TForm1.Button1Click(Sender: TObject);
var
BrowseInfo : TBrowseInfo;
PIDL : PItemIDList;
DisplayName : array[0..MAX_PATH] of Char;
begin
FillChar(BrowseInfo,SizeOf(BrowseInfo),#0);
BrowseInfo.hwndOwner := Handle;
BrowseInfo.pszDisplayName := @DisplayName[0];
BrowseInfo.lpszTitle := 'Select Directory';
BrowseInfo.ulFlags := BIF_RETURNONLYFSDIRS;
PIDL := SHBrowseForFolder(BrowseInfo);
if Assigned(PIDL) then
if SHGetPathFromIDList(PIDL, DisplayName) then
ShowMessage(DisplayName);
end;
Poner Uses ShlObj y FileCtrl

Gracias.
Responder Con Cita