>>>>does anyone know how to check to see if a directory already exisits in FoxPro Dos.
>>>>thanks
>>>>james
>>>
>>>James,
>>>
>>>Do an ADIR() and check the results.
>>>
>>>Anything else will provide false positives potentially.
>>
>>Testing for something like
>>lnFiles = ADIR( laFiles, "C:\TEMP\", "D" ) returns 2 files. If I have an temp file with no extension and I attempt a similar test it returns 0.
>>
>>Am I missing something. How would you get invalid results.
>
>Dan,
>
>I said using ADIR() was the only dependable method of finding out if a dir exists. What are you asking?
I apologize. I misinterpreted your response. Is it possible using adir to get a false positive response if a file with the same name as the directory and no extension. I believe you are saying that this is not possible with the above syntax.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement