Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 GETDIR() dialog to show unmapped network drives
Message
From
11/09/2004 04:50:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00941280
Message ID:
00941289
Views:
16
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>I have this directory command button which calls GETDIR(). This dialog does not show unmapped network drives. What I am expecting is UNC from this dialog.
>
>Any alternatives where I can get UNC names?
* Get directory
* Get directory specifying \\server\share as root
*oFolder = oShell.BrowseForFolder(0, "Please Select folder", 0,'\\server\share')
* Get directory or file
*oFolder = oShell.BrowseForFolder(0, "Please Select folder or file", BIF_BROWSEINCLUDEFILES)
* Get directory or file specifying \\server\share as root
*oFolder = oShell.BrowseForFolder(0, "Please Select folder or file", ;
* BIF_BROWSEINCLUDEFILES,'\\server\share')

#define BIF_BROWSEFORCOMPUTER  0x1000
#define BIF_BROWSEFORPRINTER   0x2000
#define BIF_BROWSEINCLUDEFILES 0x4000 
oShell = createobject("Shell.Application")
oFolder = oShell.BrowseForFolder(0, "Please Select folder", 0 )
RETURN IIF( type('oFolder.Items.Item')='O', oFolder.Items.Item.Path, '')
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform