Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getdir() across Network
Message
From
25/05/2001 10:13:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/05/2001 10:00:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00511371
Message ID:
00511498
Views:
18
>Cetin
>
>Thanks - perfect (and simple! and therefore really perfect!!)
>
>Mike
>
>PS - I'm not quite sure what George Tasker is referring to in his comment.
>
>PPS - Being greedy: Is there any way of setting the initial directory (again, as in GETDIR())
>
>Mike

Mike,
Yes there is but with simple BrowseForFolder if you specify it, it's accepted as 'Root' and user cannot browse to folders above it in hierarchy. ie:
if you say 'c:\my documents' all user could browse is 'my documnents' and its subfolders.
What George meant was I needn't to GetActiveWindow(), taht could be 0.
oShell = createobject("Shell.Application")
oFolder = oShell.BrowseForFolder(0, "Please Select folder", 0, ;
 '\\poseidon\public' )
? 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
Reply
Map
View

Click here to load this message in the networking platform