I am new to batch scripting and need to figure out how to use values that were input by the user to create a variable.
@echo off
set /p userMonth = "Enter Month(mm): "
set /p userDay = "Enter Day (dd): "
set /p userYear = "Enter Year (yyyy): "
echo month: %userMonth%
echo day: %userDay%
echo year: %userYear%
set today= %userMonth%.%userDay%.%userYear%
set month= %userMonth%-%userYear%
When I run the script the output just says
month:
day:
year:
After I input (for example)
01
25
2018