Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need help with ADIR command
Message
De
16/11/1999 17:54:09
 
 
À
16/11/1999 17:03:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00291643
Message ID:
00291688
Vues:
18
>Hi James,
>
>>I am doing what I "believe" is correct but the value always returns a "0" and it should return the file count.
>
>First, make sure the directory is not hidden, then do:
>
>?dire('C:\programfiles\')
>
>Make sure this is the correct spelling, your originla post had no space (Usually there is :-), then make sure there are actual files, folders don't count, to get folders, do:
>
>?adir(aFiles, 'C:\program files\*', 'D')

Another option is to use the Scripting.FileSystem option to open a Folder object, and then access the subfolders and files collections of the Folder object.
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