Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADir() issue
Message
 
À
14/03/2003 15:31:04
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00766008
Message ID:
00766027
Vues:
24
ADIR gives you the file long-name. So the problem is that you want to see DOS names instead. If it is the case, then you should gather file names using other method. For instance, you could use this:

run dir *.* > c:\txt.txt
and then strip out file names as they appear there.

>I think I have had this problem before but here it is again.
>
>I am using the ADir() function to find files in a particular directory. I am using the following syntax ADir(myArray,myvariable + '*.*). This works 99 percent of the time. However, today I ran the code and it let me know that files with the variable I pushed to it existed. I went to the directory and couldn't find them. So I ran the code and displayed the myArray(1,1) result. It was an entirly different number than I presentd to the function. So I opened the properties of the file it found and on NT4 the name of the file was different than the MS-Dos name. Example: File Name= 855213-400A.pdf, MS-Dos Name = 855244`1.pdf. Just so happens the variable I sent to the function was 855244.
>
>Please help me resolve this if possible.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform