syntax error
Posted: 30 May 2012 17:10
Can you help me with this?
I cannot get the conditions working.
Code: Select all
@echo off
FOR /F %%X IN (x/list.txt) DO (
REM echo %%X
SET /A odd="%%X%%2"
if %odd%==0 echo EVEN %%X
else Echo ODD %%X
FOR /F %%Y IN (y/list.txt) DO (
REM echo %%Y
SET /A odd="%%Y%%2"
if %odd%==0 echo EVEN %%X
else Echo ODD %%X
)
)
pause
I cannot get the conditions working.