Platforms to show: All Mac Windows Linux Cross-Platform

MountMBS(URL as String, Dest as string = "", Username as String, Password as String, Interactive as boolean = false, Prompt as boolean = false, byref ErrorCode as Integer, Threaded as boolean = false) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Files MBS MacOSX Plugin 18.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Mounts a network share.

Use on Server may require extra work as server runs with a different user account than you being logged in on the server machine. Permissions don't always allow things to be done.

URL: The URL for the network resource.
Dest: The destination path to mount to. If you leave this empty, the system decides. On Mac this can be the path to a folder where to mount new disk inside, e.g. to make a private mount. For Linux destination is required and must exists.
Username: The user name. If none is provided, system can take credentials from keychain, e.g. "test"
Password: The password to use, e.g. "test"
Interactive: Default is false for no dialogs. But you can pass true to have a dialog show up.
Prompt: Pass true on Windows to show dialog always to enter password.

When used on Linux the parameters are a little bit different:
Please pass source (URL), target (Dest), type (Username) and data (Password).
The dest path may need to be created first as new folder.

Returns the new path to the mounted disk.

Examples for URLs:

"afp://Ablage1.local" to mount on Mac via Apple Filesharing Protocol.
"\\myServer\public" to mount a disk on Windows.
"afp://192.168.168.250/Customer%20Data" to mount disk with space in name (URL encoded).
"\\192.168.0.242\ERP" mounts from Windows Server and e.g. pass "SRV2012\bob" as user name.

Threaded: If true and run on a Xojo thread, we yield time to other thread.

Some examples using this global method:

Blog Entries

Videos

The items on this page are in the following plugins: MBS MacOSX Plugin.


The biggest plugin in space...