função FILEEXISTS retornando sempre false
Senhores. Estou usando o Delphi 7 e tento verificar a existencia de um determinado (que no caso sei que existe) e a função vai sempre para o comando else. Por Que? Será um Bug ? Só acessa disco C: ?
os comandos que dou são :
Var
NomeFile:string;
Begin
nomefile:=´D:\xx\teste.txt´;
IF FileExists(NomeFile) then
begin
xxxxxxxxxxxxxxxxxxxxxxx;
xxxxxxxxxxxxxxxxxxxxxxxx;
end
else
begin
zzzzzzzzzzzzzzzzzzzzzzz;
zzzzzzzzzzzzzzzzzzzzzzzzzz;
end;
Aguardo ajuda
os comandos que dou são :
Var
NomeFile:string;
Begin
nomefile:=´D:\xx\teste.txt´;
IF FileExists(NomeFile) then
begin
xxxxxxxxxxxxxxxxxxxxxxx;
xxxxxxxxxxxxxxxxxxxxxxxx;
end
else
begin
zzzzzzzzzzzzzzzzzzzzzzz;
zzzzzzzzzzzzzzzzzzzzzzzzzz;
end;
Aguardo ajuda
Rounilo
Curtidas 0
Respostas
Bon Jovi
15/10/2005
Verifica se tem permissão de acesso.
GOSTEI 0
Massuda
15/10/2005
O drive D é local ou é da rede? Lembro de ter lido que o FileExists tem problemas com drives de rede.
GOSTEI 0