Is it possible to eject a mounted volume via Xojo? If so, how?
in MBS Plugin:
folderitem.UnMountVolumeMBS
http://www.monkeybreadsoftware.net/files-folderitem-method2.shtml#26
or try a shell command.
For Windows and MacOS. Not sure about Linux.
Dim sh As New Shell
#if TargetMacOS then
sh.Execute("diskutil unmount " + Vol.ShellPath)
#Else
sh.Execute("mountvol " + Vol.ShellPath + " /P")
#EndIf
If sh.ErrorCode <> 0 And TargetMacOS Then MsgBox("Unable to Eject Volume!" + EndOfLine + EndOfLine + _
"Error: " + sh.Result+ EndOfLine + EndOfLine + _
"Please manually disconnect your device, ignoring any error messages on your computer.")