Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drive letters and subdirectories in combo and list boxes
Message
From
28/01/1999 15:54:21
 
 
To
28/01/1999 15:33:26
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00181504
Message ID:
00181527
Views:
11
>I am trying to display all of the available drives in a combo box for the user to choose from and all of the subdirectories under that drive in a list box for them to choose from. Basically I want to allow the user to select the drive and subdirectory where they will copy files to and retrieve files from. Any help would be appreciated.

VFP's native GETDIR() provides most of the functionality you want; I've written an enhanced GetDir() that uses the Shell.Application object to give access to a bit more functionality, and Bela Bodecs wrote a really neat .FLL which provides even more capability, but requires you to include his (freely redistributable) .FLL with your project to make it work.
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