ikas-mc / ContextMenuForWindows11

Add Custom Context Menu For Windows11
GNU Lesser General Public License v3.0
1.84k stars 90 forks source link

Feature Request: Executing a command instead of a shortcut. #142

Open bropines opened 1 month ago

bropines commented 1 month ago

This is now. image

It's desirable image

Maybe I can use the command, but it's not working for some reason. Also a question, is it possible to add hidden startup of batches, or commands, so that they do not open a console window every time

ikas-mc commented 1 month ago

Executing a command instead of a shortcut

don't know what you mean... The "exe" does not need to add parameters

exe: ssh
param: xxx@xxx.com
or
exe: cmd.exe
param: cmd /k ...

but will add a switch to hide the window

bropines commented 1 month ago

Executing a command instead of a shortcut

don't know what you mean... The "exe" does not need to add parameters

exe: ssh
param: xxx@xxx.com
or
exe: cmd.exe
param: cmd /k ...

but will add a switch to hide the window

There is a plugin in flow launcher https://github.com/mantasjasikenas/flow-launcher-shortcuts-plugin which allows you to stupidly run a command when running a shortcut. moreover, you can choose which terminal manager to do this through. it would be nice to make a separate field for the usual commands run from the console (cmd, pwsh, powershell(pwsh = powershell 7).

bropines commented 1 month ago

as a last resort, you can give the user to specify his terminal application if he has installed some kind of left analog of powershell

bropines commented 1 week ago

And how can I compile a package?

ikas-mc commented 1 week ago

u can build from source or use msix editor to modify package

1.build from source

install vs2019 with desktop uwp sdk https://github.com/ikas-mc/ContextMenuForWindows11/blob/main/build.md and https://github.com/ikas-mc/ContextMenuForWindows11/blob/main/.github/workflows/build.yml

2. msix editor

https://github.com/ikas-mc/ContextMenuForWindows11/wiki/Create-Custom-Package