1. The documentation for @select and @selectarray says "If the specified width is < 150 [...]" - yet neither select nor selectarray take a width parameter
2. @selectarray (and probably @select) don't work correctly when "ConsolePopupWindows=yes". Variables select_line and _select_key are not correctly set. "keymask" doesn't work (keys still work as search).
2. @selectarray (and probably @select) don't work correctly when "ConsolePopupWindows=yes". Variables select_line and _select_key are not correctly set. "keymask" doesn't work (keys still work as search).
Code:
@echo off
setarray /f choice[6]
set choice[0]=1 Microsoft SQL Server
set choice[1]=2 MySQL
set choice[2]=3 Oracle
set choice[3]=4 PostgreSQL
set choice[4]=5 SQLite
set choice[5]=6 NOT_AN_OPTION
option //ConsolePopupWindows = no
echo %@selectarray[choice,0,0,300,400,Enter database type:,0,1,12345] > nul
echo %select_line
echo %_select_key