I have a problem with this script. It is supposed to show a menu with various selections and execute the chosen one. Generally works fine, but I had a challenge with a command that needed to be run as admin. I found the tool
GSudo which supports that and so I've built run arguments to launch appropriately. This was tested with "Try Script" and I also copied the result (as shown by the
text command) and executed it with run - works fine.
However, when running the script, all that it does (after showing the command) is to open an explorer window for "This PC"...
Code: Select all
$menu = <<<MENU
&DB;
&Maria DB CLI;"""C:\Program Files\gsudo\2.0.9\gsudo.exe"" -n --keepShell ""C:\Program Files\MariaDB 10.5\bin\mysql"" -u root --default-character-set=utf8";c:\data\icons\database.ico
MENU;
$sel = popupnested($menu);
end $sel == "";
text $sel;
run $sel;
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.0600 *
F² *
LinkTree