Help with a simple batch file

dustin

Weaksauce
Joined
Jul 7, 2004
Messages
99
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
 
Back
Top