Função.....

Delphi

26/05/2004

Alguém conhece alguma função para verificar se um diretório ja existe. Se alguém souber me ajudem por favor. Obrigado.


Foxcyber

Foxcyber

Curtidas 0

Respostas

Kleberns

Kleberns

26/05/2004

ifnot DirectoryExists(´c:\temp´) then
ifnot CreateDir(´C:\temp´) then
raise Exception.Create(´Cannot create c:\temp´);


att.
Nogueira


GOSTEI 0
Rômulo Barros

Rômulo Barros

26/05/2004

Function DirExiste(APath : String) : Boolean;
Begin
  Result := DirectoryExists(APath);
End;


[color=red:687920d50d]Ex:[/color:687920d50d]
  If(DirExiste(´C:\MeuDiretorio´))Then
    ...
   Else
     ...



:roll:


GOSTEI 0
POSTAR