How do you make a batch file accept 1-char keyboard input WITHOUThaving to also press carriage return?
On 30-5-2018 13:15, Java Jive wrote:
On 30/05/2018 08:11, Ralph Fox wrote:
Be aware that CHOICE is not supported in Windows XP.
Nonsense, as in ...
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\TEMPchoice /?
CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]
/C[:]choices Specifies allowable keys. Default is YN
/N Do not display choices and ? at end of prompt string.
/S Treat choice keys as case sensitive.
/T[:]c,nn Default choice to c after nn seconds
text Prompt string to display
ERRORLEVEL is set to offset of key user presses in choices.
?????????????????????????????????????????????????? ?????????
my XP PRO sp3:
C:\01-sjouke\testchoice /?
choice wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.
C:\01-sjouke\test
Translated:NOT RECOGNIZED!!!!!
In dos 6.22 it does work.
|