I am trying to create two context menus for .EXE files in Windows 8, both of which will need admin privileges. As I can see in registry, HKEY_CLASSES_ROOT\exefile\shell\runas can only have one command and it is being used by the "Run as administrator" context menu. Right now, I am using this code in a .reg file:
[HKEY_CLASSES_ROOT\exefile\shell\Low Priority Run] "HasLUAShield"="" "MUIVerb"="&Low Resource Start" [HKEY_CLASSES_ROOT\exefile\shell\Low Priority Run\command] @="cmd.exe /c start /low /affinity 2 \"\" \"%1\"" [HKEY_CLASSES_ROOT\exefile\shell\Boost Application] "HasLUAShield"="" "MUIVerb"="&Boost Application" [HKEY_CLASSES_ROOT\exefile\shell\Boost Application\command] @="cmd.exe /c start /realtime \"\" \"%1\""
The HasLUAShield flag seems to be only displaying fancy shield and is not elevating my command to run as administrator.
Why I want them to be ran as administrator? Because when not ran as administrator, the "realtime" priority is not given, instead just "high" priority is allotted to the exe in the Boost Application menu. And in the Low Resource Start too, the exe files contained in (for example, Program Files folder) run as just normal (Not even low priority, neither CPU 1 Affinity).
Also, I noticed in some "command" entries in registry, there is a %* at the end. What does that %* mean?