I am a beginner at batch files. So I was making a basic batch file and when I tested it out, it said The syntax of the command is incorrect.
But I am quite sure that it is correct. I knew it was in the IF parts of my coding, as I put several wait scripts(using VBS). I don't use REM just yet so I don't know what the problem is. What I wrote is something like this.
@echo off
b:
set a=1
IF %a%==1 goto :a
:a
echo Test
pause
goto :b
I also have quite alot of other IF %variable%==number
statements in the coding and they all work fine. What is going on?