Startseite bisherige Projekte Tools/Snippets Bücherempfehlungen Publikationen Impressum Datenschutzerklärung

Launch Executable UAC ElevatedApril 2015

A VBScript helper file is used to launch a Windows Executable with elevated UAC rights.

Java Code:
File elevate = ... // cscript, see below
File initExe = ... // the exe to run UAC elevated
ProcessBuilder pb = new ProcessBuilder("cscript", elevate.toString(),
VBScript code;
' UAC right elevator
' Call with exe to run elevated as first parameter 
' Example: elevate.vbs "initVDDS.exe"
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute Chr(34) & wscript.arguments.item(0) & Chr(34), "",
Impressum - Datenschutzerklärung