public class Elevation
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
executeElevated(java.io.File executable,
java.lang.String parameters,
java.io.File directory)
Runs an executable in elevated state.
|
static ElevationState |
getElevationState()
Returns the elevation state of the current process.
|
public static ElevationState getElevationState()
public static boolean executeElevated(java.io.File executable, java.lang.String parameters, java.io.File directory)
executable
- the executableparameters
- parameters passed to the executable. Can be null.directory
- The working directory for the process. If null the current working directory is used.