Code for BATCH FILE SHOWING THE STRING COMPARISON in Dos
@echo off
CLS
REM STRING COMPARISONS.
REM BATCH FILE STARTS..............
ECHO THIS IS BATCH FILE SHOWING THE NUMERIC COMPARISON.
SET var=0
SET mul=0
SET /A "%var=1+2"
ECHO THE FIRST STRING IS %var%
SET /A "%mul=1+2"
ECHO THE FIRST STRING IS %mul%
IF "%var%" == "%mul%" GOTO SAME
GOTO NOTSAME
GOTO EXIT
:SAME
ECHO STRINGS ARE SAME.
GOTO EXIT
:NOTSAME
ECHO STRINGS ARE NOT SAME.
GOTO EXIT
:EXIT