Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need to do ADIR enhancement..
Message
De
11/09/2001 22:20:43
 
 
À
11/09/2001 21:44:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00555009
Message ID:
00555350
Vues:
15
>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform