>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