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
Type Topic Plugin Version macOS Windows Linux iOS Targets
global method New MBS Win Plugin 21.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Runs given file as admin.
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
Notes:
See also WindowsShellExecuteMBS function.
Returns Windows error code, zero on success.

Blog Entries

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS FileMaker Plugins

Start Chat