The code snippet in the linked proposed duplicate reads user input.
ECHO A current build of Test Harness exists.
set /p delBuild=Delete preexisting build [y/n]?:
The user can type as many letters as they want, and it will go into the delBuild variable.
More Related Contents:
- How does the Windows Command Interpreter (CMD.EXE) parse scripts?
- How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name?
- What is the reason for “X is not recognized as an internal or external command, operable program or batch file”?
- How do I run two commands in one line in Windows CMD?
- Symbol equivalent to NEQ, LSS, GTR, etc. in Windows batch files
- Windows batch files: .bat vs .cmd?
- How to delete files/subfolders in a specific directory at the command prompt in Windows
- How do I escape ampersands in batch files?
- Batch script: how to check for admin rights
- Setting a system environment variable from a Windows batch file?
- Windows XP or later Windows: How can I run a batch file in the background with no window displayed?
- How to correct variable overwriting misbehavior when parsing output?
- FORFILES date -after- (date calc in cmd file)
- Create an empty file on the commandline in windows (like the linux touch command)
- What is the proper way to test if a parameter is empty in a batch file?
- XCOPY still asking (F = file, D = directory) confirmation
- Redirecting Output from within Batch file
- Creating a file name as a timestamp in a batch job
- How do I create a shortcut via command-line in Windows?
- Why does findstr not handle case properly (in some circumstances)?
- Batch script with for loop and pipe
- How to echo “2” (no quotes) to a file, from a batch script?
- How to pass environment variables as parameters by reference to another batch file?
- Rename all files in a directory with a Windows batch script
- Execute multiple batch files concurrently and monitor if their process is completed
- Batch file encoding
- Why doesn’t my stderr redirection end after command finishes? And how do I fix it?
- Using echo y as an automated response to a pcp hostkey prompt
- Batch file to upload .txt to FTP
- UTF-16 to UTF-8 conversion (for scripting in Windows)