I just need a Batch command that can check if some key was pressed, or a function that will return the keyboard key from the buffer.
Where can I find/download such a function?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
readby default lets you wait until the user presses enter. It takes an optional parameter which is the name of a variable in which it’ll save the user input (everything up to the newline).You can also specify a different character to wait for (instead of newline) with the
-dswitch.