Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show Network Neighborhood, etc
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00591621
Message ID:
00591640
Views:
26
This message has been marked as the solution to the initial question of the thread.
>I've been using the GETDIR() function to allow users of an application to specify where the data for their program is located. The returned path is checked to make sure the tables required are located there, and if so, the path is stored in a settings table. In the past, if the data is located somewhere other than the local machine, a mapped drive to that machine had to exist (so the user could select that drive letter from the GETDIR() dialog).
>
>Now, I would like the user to be able to specify a UNC rather than being required to have a "hard" mapped drive to the host machine. I don't think the GETDIR() function will allow the user to see folders on any machines (drives) that aren't mapped, so I'm looking for a way to do this. (The same way that Windows Explorer shows the "Network Neighborhood" in Win98, etc.)
>

You can use Bela Bodecs' BBGETDIR() ActiveX control, or the code I wrote up in the FAQ demonstrating an enhanced GetDir() replacement using Shell.Application to handle the GetDir() functionality, or subclass the MS Common Controls DIalog to provide the necessary functionality.
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