https://github.com/aetonsi/bin__kliu_elevate-1.3.0-redist
{bin} Windows binaries of kliu.org "elevate" utility (v1.3.0)
https://github.com/aetonsi/bin__kliu_elevate-1.3.0-redist
command-line elevation windows
Last synced: 11 days ago
JSON representation
{bin} Windows binaries of kliu.org "elevate" utility (v1.3.0)
- Host: GitHub
- URL: https://github.com/aetonsi/bin__kliu_elevate-1.3.0-redist
- Owner: aetonsi
- Created: 2022-08-29T20:01:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T20:02:14.000Z (about 3 years ago)
- Last Synced: 2025-09-13T00:05:02.141Z (about 1 month ago)
- Topics: command-line, elevation, windows
- Language: C
- Homepage: http://code.kliu.org/misc/elevate/
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
Command-Line UAC Elevation Utility
Version 1.3Introduction
============This utility executes a command with UAC privilege elevation. This is useful
for working inside command prompts or with batch files.Usage
=====Synopsis:
elevate [(-c | -k) [-n] [-u]] [-w] commandOptions:
-c Launches a terminating command processor; equivalent to "cmd /c command".
-k Launches a persistent command processor; equivalent to "cmd /k command".
-n When using -c or -k, do not pushd the current directory before execution.
-u When using -c or -k, use Unicode; equivalent to "cmd /u".
-w Waits for termination; equivalent to "start /wait command".Notes:
Both the hyphen (e.g., -w) and slash (e.g., /w) forms of switches are valid.When -k is specified, command is optional. Omitting command in this case will
simply open an elevated command prompt.Normally, an elevated command processor will not honor the current directory
of an unelevated parent process, thus potentially creating problems with
relative paths. To address this problem, when the -c or -k switches are used,
elevate will issue a pushd command to the new command processor to ensure that
it uses the current directory of its parent process. Specifying the -n switch
will disable this feature.Examples:
elevate taskmgr
elevate -k
elevate /w HashCheckInstall.exe
elevate -k sfc /scannow
elevate /c del %SystemRoot%\Temp\*.*
elevate -c -w copy foo*.* barWhy this utility?
=================There are other similar utilities available; for example:
*
*Features that set this utility apart from the rest:
* Correct handling of command line parameters; the command line parameters are
passed along for execution verbatim, without being chopped up and reassembled.* The ability to launch the command processor using /c instead of /k.
* The ability to launch the command processor in the current directory.
* Better error messages to make troubleshooting execution problems easier.
* Native C code avoids the burdensome .NET startup overhead and allows for a
much smaller executable file size.