Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic File Listing
Message
From
18/02/1999 09:06:25
 
 
To
18/02/1999 08:34:15
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00188810
Message ID:
00188820
Views:
25
>Is there a command in VFP that can find files in a directory without
>knowing the name?

You can use ADIR() to populate an array with the names, and then spin through it (ADIR() can use various wildcard masks to restrict the return sets) or any of a number of different Automation Objects like Shell.Application or Scripting.FileSystemObject can return a Folder Object that you can iterate through to get the files contained in the folder.

There's also SYS(2000), which exactly implements a FindFirst/FindNext search pattern.

Ed
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
Reply
Map
View

Click here to load this message in the networking platform