I'm trying to make a comparison using the IF () where I compare the current month and assign its name but I can not print the results of the variables
This is the code I have
@echo off
SET FOLDER=%Date:~0,2%-%Date:~3,2%-%Date:~6,4%-%time:~0,2%
set mes=%date:~3,2%
@echo %mes%
set nombre="nombre"
IF %mes% == 10 (
%nombre%="Octubre"
@echo %nombre%
)
if %mes% == 11 (
%nombre%="Noviembre"
@echo %nombre%
)
pause
At the end he gives me a message like this:
"" name "" is not recognized as an internal or external command, program or executable batch file. "name"
I hope you can help me