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


Paradox0s

Well-known member
Local time
5:03 PM
Posts
3
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 My Computer

At a glance

WindowsRyzen 4650U16GB
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 My Computer

At a glance

Linux Mint
OS
Linux Mint
Computer type
Laptop
Manufacturer/Model
System76 Lemur Pro
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 My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro

Latest Support Threads

Back
Top Bottom