![]() to wait for it to exit and communicate its exit code to the caller. You may place -Wait before -Verb RunAs (see below) in order to make the elevated reinvocation synchronous, i.e. You don't need a hybrid batch file that uses clever, but obscure tricks to combine the languages of two distinct environments in a single file. You can call PowerShell via its CLI, powershell.exe, in order to call its Start-Process cmdlet, which supports starting processes with elevation doing so has two advantages: ObjShell.ShellExecute "cmd", "/c "
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |