I have a problem in using variables in command prompt. Based on the value of the environment variable, i want to execute a few commands in a batch file. The code is below:
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
)
This is what I want to do. I am new to using these kind of scripts. So I don't have much information. Please help me with this.