cmderdev/cmder

Question: Alias with admin permission

leuchte opened this issue · 0 comments

Question

Hello,

until recently I had an older CMDER version installed (unfortunately I don't know which version). There I had defined some aliases that no longer work in the current version. In particular, alias that uses ConEmu switches "-cur_console" and "-new_console". For example, I have an alias with which I can edit the alias file directly:

salias=vim %SCRIPT_PATH%\cmder\config\user_aliases.cmd -new_console:n

Vim crashes directly after execution:

Crash after the option argument: "-new_console:n"

Another alias is to add a path to the environment variables:

path=setx /m OWN_PATHS "%OWN_PATHS%;$*" -new_console:abn

The error:

ERROR: Access to the registry path was denied.

As I said, all the commands worked with the old CMDER version. Is there a setting that will make this work again? And if not with switches, is there a way to run commands/aliases with admin rights, without to start a new console as admin?

Thank you very much.

Checklist

  • I have read the documentation and made sure what I'm looking for isn't present, or is unclear.
  • I have searched for similar issues, and either this question wasn't asked before, or I didn't find any that describe my question.