Need help for context menu "Open alacritty here as administrator"


Paradox0s

New member
Local time
8:06 PM
Posts
2
OS
Windows
Hello,everyone,

On tenforum I found way to add "open cmd here as admin" on context menu as below link.


Now I wonder if it's possible to add "Open alacritty here as admin" ? After installed, it add entry "open alacritty here"
with below code:
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Open Alacritty here\command]
@="C:\\Program Files\\Alacritty\\alacritty.exe --working-directory \"%V\""

Can anybody helps to find some way on this ?
Btw,Alacritty is really faster and much more beautiful compare with default cmd or wt.

Thank you
 

My Computer

System One

  • OS
    Windows
    Computer type
    Laptop
    Manufacturer/Model
    Thinkpad T14s gen1 AMD
    CPU
    Ryzen 4650U
    Memory
    16GB
You can call some Powershell as your command. Here is an example of a RunAs command launching an elevated cmd prompt.

powershell.exe -Command "& {Start-Process -FilePath 'C:\Windows\System32\cmd.exe' -Verb Runas -ArgumentList @('/K','cd','C:\Users') -NoWait}"
 

My Computer

System One

  • OS
    Windows 11
use EcMenu to create and implement it into your context menu. Can set a custom icon, run as admin, and add it to desktop, drive, folder context menus all at once...

 

My Computer

System One

  • OS
    Windows 11 Pro
Back
Top Bottom