Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADir() issue
Message
From
17/03/2003 13:13:55
 
 
To
14/03/2003 15:31:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00766008
Message ID:
00766640
Views:
20
Steven, I dont see how "855213-400A.pdf" could be converted to "855244`1.pdf" as its short filename version. See Re: How can I get short path name in VFP? Thread #711861 Message #711962 for an example of the API function Windows uses to convert long filename to short filenames. Are you sure these are the correct values you found? Unless of course you have many files that start with "8552" in that folder perhaps? Just surprised.


>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.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform