Recently I've encountered yet another problem in my Batch file. Where I want something to be performed, I'm getting the following error:
= was unexpected at this time.
I've had this error before, however it's always due to a small mistake which I fixed up. This time I can't identify it.
choice /c 12b /n
if %errorlevel%==1 (
if not exist C:\ntbobdings\1.txt (
set bding=Variable
set bdingno=1
goto IfNot
)
What is wrong? It's a small area, yet the if %errorlevel%==1 (blah)
seems fine.