Okay, so I'm trying to make a batch file that when run on April 1st, it will do something else. I want it to make sure that it is any year, but the month has to be 4, and the day has to be 1, then it will do something else, but if this is false, then it will not do that. Here's the code I tried:
if ((%month% = 4) + (%day% = 1))
then
ECHO Test Successful 2
else
ECHO Test Successful 1
I'm new to batch, by the way. I just freestyled this to see if it worked. It gave me a Syntax error.
Syntax Error Can anyone help me?