I am having trouble accessing a network drive.
the path is generated by “OpenDialog” routine which allows the user to choose the folder.
that does exist.
In win7 for example the folder returned by OpeDialog is:
\\RouterName\DD1\_DB\culser
in Mac the folder returned is:
/Volumes/NDD1/_DB/culser where NDD1 is the network drive.
The OpenDialog routine return the “\” double backslash for windows instead of “\etwork”
Assuming on the network drive folders are broken up in to “Folders()” array
the following routine fails when i = 1/ and folder(1) = NDD1
Root = GetFolderItem(Folders(0))
For i As Integer = 1 To Folders.Ubound
Root = Root.Child(Folders(i))
if Root <> Nil and Root.Exists Then
continue
else
MsgBox "I: " + str(i) + " folder: " + Folders(i)
Return Nil
End If
Next
This forum talked about rebuilding network drive FolderItem but did not go into much detail how to do that.
https://forum.xojo.com/29354-retaining-folderitem-for-file-on-external-drive/0#p240868
Note: this routine works great on non network drives.
please advise …