I’m trying to mount shares from a NAS using the NetFSMountMBS class. Whatever I try, I get errors.
Currently, this is my code:
Var MountPoints() as string
Var Result as integer=app.NFSM.MountURLSync("smb://192.168.1.117","Movies",UserName,Password,app.OpenOptions,app.MountOptions,MountPoints)
Result always equals -6003 and MountPoints is nil.
-6003, from the MBS documentation is “No shared available.”. Is that intended to be “No shares available”?
With “smb://192.168.1.117.local”, it’s worse, as the server can’t even be found, and it doesn’t work without “smb://” either.
I get the same behaviours using the example project.
I can’t find the requested format.
Can anyone help me?
So, to summarise, with my first example:
The URL is: smb.//192.168.1.117/Movies (i.e. the volume/share “Movies” on my NAS).
The default share, when passing “” as Mount Path is /volumes/movie (or the equivalent for my NAS).
Correct until here?
So, if I pass “smb://192.168.1.117/Movies” as the URL and “MyFolder” as Mount Path, it’d try to mount “/volumes/Movies/MyFolder” on my NAS or “/volumes/MyFolder”?
In my mind, a share and a Mount Path are the same.