Code for BATCH TO SEE WORKING OF IF AND IF NOT. in Dos
@echo off
CLS
REM IF AND IF
REM NOT HELPS TO SEE WORKING OF IF AND IF NOT.
REM BATCH FILE STARTS..............
ECHO THIS BATCH FILE SHOWS THE USE OF IF AND IF NOT.
ECHO ENTER 1 TO SEE THE MEMORY MANAGMENT OF YOUR SYSTEM.
ECHO ENTER 2 TO SEE YOUR ENVIRONMENTAL PATH.
IF "%1"=="1" GOTO ONE
IF NOT "%1"=="1" GOTO TWO
:ONE
MEM
GOTO EXIT
:TWO
PATH
GOTO EXIT
:EXIT