Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Andrew Coates site with GetDir replacement
Message
 
 
À
14/11/2001 10:37:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00581464
Message ID:
00581528
Vues:
44
>>Hi everyone,
>>
>>I'm looking for ideas to receive directory with its native format (e.g. preserving capital and non-capital letters). Ed Rauh's solution with Shell (from FAQ section) doesn't satisfy, so I'd like to find some alternatives. VFP6.0
>>
>>I saw one very complicated method on Andrew's site, do you know the link or simpler approach?
>>
>>Thanks in advance.
>
>Do you mean the directory names?
>
>This works for me:
>
oFSO = CreateObject("Scripting.FileSystemObject")
>oRoot = oFSO.GetFolder("D:\")
>For Each oFolder In oRoot.SubFolders
>	? oFolder.Name
>Next
It should be a user's dialog to allow to select a directory. It should return choosen directory in the proper format. Shell solution doesn't satisfy, because it's a PITA to install it on each machine. I saw Andrew's method, but can not find his site for a moment. I was lazy to make a search here, but I guess, I have to :)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform