: AnsiString asPath="c:\\Tmp\\aa.a*"; : if(FileExists(asPath)){ : ShowMessage("O"); : }else{ : ShowMessage("X"); : } :