Is there a way to reliably cross platform way to use a UNC path to
create a FolderItem so that I do not have to rely on whether a volume is
mounted? The following code works on Windows but not on Mac OS X. This
was just a simple experiment but since it worked on Windows I am hopeful
that something similar would work on the Mac. 


  Dim dlg as New SelectFolderDialog
  Dim f,Vol as FolderItem
  Dim s As String
  
  Vol = GetFolderItem("\\10.113.20.21\diraid")
  
  dlg.ActionButtonCaption="Select"
  dlg.Title="Select Folder"
  dlg.PromptText="Select a folder from the UNC Path"
  dlg.InitialDirectory= Vol
  f=dlg.ShowModal()
  if f <> Nil then
    s = "The path to the selected folder is: " + f.AbsolutePath
    MsgBox s
  else
    //user cancelled
  end if
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to