Platforms to show: All Mac Windows Linux Cross-Platform
WindowsShellExecuteAsAdminMBS(ParentWindowHandle as integer, File as string, Parameters as string = "", Directory as string = "", ShowCmd as integer = 5) as integer
Function:
Runs given file as admin.
Example:
Notes:
See also WindowsShellExecuteMBS function.
Returns Windows error code, zero on success.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | New | MBS Win Plugin | 21.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Example:
// run me as admin
Dim r As Integer = WindowsShellExecuteAsAdminMBS(0, app.ExecutableFile.NativePath, "", "", 3)
If r <> 0 Then
MsgBox "error: "+Str(r)
End If
See also WindowsShellExecuteMBS function.
Returns Windows error code, zero on success.
Blog Entries
The items on this page are in the following plugins: MBS Win Plugin.

Links
MBS FileMaker Plugins