I am writing a simple batch file and i get this “The syntax of the command is incorrect” error for the if statement.The batch file is as below:
@echo off
set ARCH=%PROCESSOR_ARCHITECTURE%
if %ARCH% == 'x86'
(
)
I also tried
if %ARCH% EQU 'x86'
What is wrong with the if statement?
try
and while you are at it, why not learn vbscript as well, here’s the equivalent