SyMenu Forum

SyMenu

 

HomeSyMenu Suite

The SyMenu collection of portable programs

Run Powershell command Messages in this topic - RSS

ronen1n
ronen1n
Posts: 6


15/09/2024
ronen1n
ronen1n
Posts: 6
I think that I was able to run powershell command by pressing on "Add Windows Command" then with this line `powershell.exe -c "command"`
But now trying to run it its adding " before the powershell like: '"powershell.exe -c "one_word_of_the_command'

edited by ronen1n on 15/09/2024
link
Gianluca
Gianluca
Administrator
Posts: 1274


16/09/2024
Gianluca
Gianluca
Administrator
Posts: 1274
Sorry... I read your post three times but I can't understand if it's an issue report, a suggestion for other users, or whatever...
Can you explain better what's it on?
link
ronen1n
ronen1n
Posts: 6


16/09/2024
ronen1n
ronen1n
Posts: 6
Try running powershell command and tell me if its working for you, if not so it's an issue or if it doesn't exist it's a suggestion.
link
Gianluca
Gianluca
Administrator
Posts: 1274


16/09/2024
Gianluca
Gianluca
Administrator
Posts: 1274
It works.

You don't have to use a Windows command item because the shell recognizes only Windows command.

You have to use a normal Program item configured like this:

- in the path field set "powershell.exe" (it works only if you have ps folder in the Path environment variable otherwise put the entire path to powershell.exe);
- in program arguments set -command "your command here". For example you can set "-command get-process.

Please report the outcome for other users.
link
ronen1n
ronen1n
Posts: 6


16/09/2024
ronen1n
ronen1n
Posts: 6
It works, thanks.
link



UGMFree © 2002-2024
PayPal BTC TON