1 USING: io.launcher elevate ;
7 M:: windows elevated ( command replace? win-console? posix-graphical? -- process )
9 <process> command >>command
13 command dup string? [ " " split ] when
14 ! lpFile lpParameters lpDirectory nShowCmd
15 [ first ] [ rest ] bi f win-console? 1 0 ?
17 ShellExecuteW :> retval retval n>win32-error-check
18 retval replace? [ exit ] [ ] if
21 ! no-op (not possible to lower)