Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR()
Message
From
25/01/2001 20:35:56
 
 
To
25/01/2001 11:19:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: ADIR()
Miscellaneous
Thread ID:
00468502
Message ID:
00468898
Views:
15
>I have a directory called E:\bucks\storexls\. Within this directory are sub-folders. While in the directory E:\bucks\storexls, I issue the following command:
>
>numberrec = ADIR(srrlist, '*.*') && Create Array
>
>Nothing is being returned. Why? If I go directly into one of the sub-folders (E:\bucks\storexls\0001010\) and issued the above command, the array is populated with the list of files in the folder.
>
>Is there a different command I need to use to get the list of sub-folders in E:\bucks\storexls\?
>

If you simply want to retrieve the Folder names with ADIR(), you've already gotten your answer. If instead, you want to build a list of the files recursively, there's sample code in the FAQ for recursing a directory hierarchy.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform