Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory and File List.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00640628
Message ID:
00640921
Views:
18
>Hi!
>
>How should I do to take a complete list of directory and files?
>Example:
>
>The user type: "C:\MY FILES"
>
>And I have to list all folders, all files - including system, read-only, hidden, etc. I have get the folder that don't have files too.

I'd use either ADIR() or the Scripting.FileSystemObject to get folders and files, and recurse from there as necesary; if you need a dialog, Shell.Application's BrowseForFolder method is a good starting place, and is documented in the FAQ in my entry on an Enhanced GetDir()
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