Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NUMBER OF FILES IN A DIRECTORY
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00344120
Message ID:
00344279
Vues:
40
>>How can I find help about all properties and methods of scripting.FileSystemObject

Check out http://msdn.microsoft.com/scripting/default.htm?/scripting/vbscript/default.htm for some help.

>>
>>I used your program and it returns 9, 5 Files and 4 SubFolders. Now I'm trying to understand, which folder it used, how can I specify parameters, which folder to look and how can I print all file names in this directory and subfolders too.
>
>Ok, I can pass a parameter. Now I'm wondering, how can I count the number of files in all subfolders (not the number of subfolders). Right now it returns number of files in specified folder+ number of subfolders. If there a way to receive a number of all files in one command or I need to use recursion and calculate by myself.
>
AFAIK, you would have to recurse through the directory structure. There is nothing to I know of to get the whole thing at once.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform