using Set command to set a variable with an input value. /P would tell command line to prompt with a question.
In the example below, command line will prompt you to “Please enter your name:”, then set the value you entered to the variable your_name. In the next line, echo would be printing out the value you entered for variable your_name.
@echo off set /P your_name="Please enter your name:" echo Hi, %your_name%
Here’s what the output looks like: