Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NUMBER OF FILES IN A DIRECTORY
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00344120
Message ID:
00344852
Views:
27
Where are the other methods and classes for this guy listed?

>> Does anyone know the command for finding out the total number of a directory ? Thanks.
>
>ADir() will work but Ed's enthusiasm has infected most of us. You could use the Scripting.FileSystemObject.
>
oFS = createobject("scripting.FileSystemObject")
>oFolder = oFS.GetFolder("\")
>return oFolder.Files.Count+oFolder.SubFolders.Count
>
>This will return the number of files and subdirectories in the specified directory.
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform