Code:
@ECHO on
FOR /F "usebackq tokens=1-3" %%i IN (`date /t`) DO set day = %%i
IF /i "%day%"==wed GOTO :backup ELSE GOTO :end
:backup
echo backing up
:end
echo ending
It just runs right through the if statement not evaluting like I want it to and jumps straight to :end. What am I doing wrong?
This is Windows XP