Посмотрите здесь, как получить информацию:
Ввод командного файла
Редактировать : Содержание ссылки (больше не доступно) было:
The following method will work on Windows 2000 and XP:
set INPUT=
set /P INPUT=Type input: %=%
echo Your input was: %INPUT%
If user hits ENTER without typing anything, the variable (in this case, %input%) keeps it value. So, the first line is to reset its value, so that if nothing is entered the variable will have no value at all, instead of some senseless value.
As you can see, that accepts blank inputs. You can make it to don't accept:
:input
set INPUT=
set /P INPUT=Type input: %=%
if "%INPUT%"=="" goto input
echo Your input was: %INPUT%
So, after getting user's input and saving it in a variable, you can use it as you will.