Função.....
Alguém conhece alguma função para verificar se um diretório ja existe. Se alguém souber me ajudem por favor. Obrigado.
Foxcyber
Curtidas 0
Respostas
Kleberns
26/05/2004
ifnot DirectoryExists(´c:\temp´) then
ifnot CreateDir(´C:\temp´) then
raise Exception.Create(´Cannot create c:\temp´);
att.
Nogueira
ifnot CreateDir(´C:\temp´) then
raise Exception.Create(´Cannot create c:\temp´);
att.
Nogueira
GOSTEI 0
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