@echo off
SET var1="Yes"
SET var2="No"
SET var3="Yes"
if %var1%=="Yes"
echo Var1 set
if %var2%=="Yes"
echo Var2 set
if %var3%=="Yes"
echo Var3 set
If I run the above script I get the following error. Can anyone pls help?
The syntax of the command is incorrect.
Thanks.