Fórum Função..... #234466
26/05/2004
0
Alguém conhece alguma função para verificar se um diretório ja existe. Se alguém souber me ajudem por favor. Obrigado.
Foxcyber
Curtir tópico
+ 0
Responder
Posts
26/05/2004
Kleberns
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
Responder
Gostei + 0
26/05/2004
Rômulo Barros
Function DirExiste(APath : String) : Boolean; Begin Result := DirectoryExists(APath); End;
[color=red:687920d50d]Ex:[/color:687920d50d]
If(DirExiste(´C:\MeuDiretorio´))Then ... Else ...
:roll:
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)