>>Hi!
>>
>>There is an Windows API function to get short file name from long (do not remember which, let me know if you cannot find it).
>>
>>Just a suggestion:
>>Try: ADIR(aDirs,"DHS"), "MSCREATE.DIR" folder is usually marked as hidden, but ADIR(aDirs,"D") do not see hidden directories. Just check if this is true...
>>
>>Good reason to upgrade to VFP7 - ADIR in there allows getting short file names in result array, as well as return file names in original case (in older versions files are in all uppercase).
>>
>
>Well, I have post the API function call at the below, I've found it.
>I am using Chinese VFP but still not yet Chin. VFP 7.0 out.. :(
>
There are FAQs demonstrating how to use ADIR() to recursively build a list of files, as well as equivalent functions that rely on the Windows Script Host Scripting.FileSystemObject and Shell.Application automation objects. You might also look at Bela Bodec's bbGetDIR.OCX, available for download in the Files section here on UT.