Re: Multi-line menu with options selection via DOSKEY
Posted: 06 Sep 2019 06:57
The CHOICE command was introduced in MS-DOS 6 and is still available in MS-DOS 7 (Windows 95/98). In Windows NT 4, 2000 and XP, CHOICE is no longer a part of the standard distribution.
XCOPY/WQL is another way of implementing getkey in macro code;
Choice is available in Windows 7.
Code: Select all
%= =%set k=^&for /F eol^^^^=1delims^^^^= %%? in (%$c1% %= =%'xcopy/WQL "^!comspec^!" \'%$c1% %= =%) do set k=%%?^&set k=^^^!k:~-1^^^!%$n1c%