Batch files have a few special syntax
So your code should look like
SET CONFIGURATION=Release if "%CONFIGURATION%"=="Release" ( copy c:\python26\test1.py d:\testfiles copy c:\case.jpg d:\images ) else ( copy c:\python26\test2.py d:\testfiles copy c:\debug.jpg d:\images )
It is important that the brackets are on the same line if
, ELSE
source share