Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the total numbers of files of a folder
Message
De
03/10/2005 08:58:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01055451
Message ID:
01055473
Vues:
17
>Hi !
>
>Is anybody have an idea to get the total numbers of files of a folder. We have more than 20000 files in a folder and we want to check the total numbers of files exist in folders.
>
>We have tried =ADIR() function to the same but it give an error "Invalid subscript reference" or "subscript out of range".
>
>
>Thanks in advance
>Ravi Mehrotra

Visual FoxPro 8 is limited to 65000 elements per array. VFP 9 allows much larger arrays.

You might also use some API or WSH function.

A function available from VFP is sys(2000) - you will have to write the loop to get one file at a time.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform