diff --git a/runas_windows.go b/runas_windows.go index 5183883..418f530 100644 --- a/runas_windows.go +++ b/runas_windows.go @@ -148,7 +148,7 @@ func RunElevated(executable, workingDir string, args []string, awaitProcCompleti directory: directory, file: file, parameters: parameters, - show: windows.SW_SHOW, //HIDE, + show: windows.SW_HIDE, mask: SEE_MASK_NOCLOSEPROCESS, } if !shellExecuteEx(execInfo) {