Logo 
Search:

Dos Articles

Submit Article
Home » Articles » Dos » BatchRSS Feeds

BATCH TO SEE WORKING OF IF AND IF NOT.

Posted By: Milind Mishra     Category: Dos     Views: 2946

BATCH TO SEE WORKING OF IF AND IF NOT.

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
  
Share: 


Didn't find what you were looking for? Find more on BATCH TO SEE WORKING OF IF AND IF NOT. Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of BATCH TO SEE WORKING OF IF AND IF NOT. is from India.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!