if/then/else statements in Windows batch

Viewed 80141

In a shell script I have the following code:

if echo Mr.32 ; then
  echo Success
else
  echo Failed
  exit
fi

What is the equivalent syntax for Windows batch files?

2 Answers
Related