Need help with a misbehaving script
Posted: 19 Jun 2023 09:15
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
However, when running the script, all that it does (after showing the command) is to open an explorer window for "This PC"...
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;