Logo 
Search:

Dos Articles

Submit Article
Home » Articles » Dos » BatchRSS Feeds

USAGE OF SET COMMAND

Posted By: Milind Mishra     Category: Dos     Views: 6025

BATCH OF USAGE OF SET COMMAND.

Code for USAGE OF SET COMMAND in Dos

@echo off

CLS

REM           USAGE OF SET COMMAND.

REM           BATCH FILE STARTS..............

ECHO          THIS IS BATCH FILE SHOWING THE NUMERIC ADDITION.


 SET V=%1

 SET U=%2

 SET ANS=0






ECHO THE FIRST NUMBER IS %V%


ECHO THE FIRST NUMBER IS %U%


echo THE ADDITION  OF TWO NUMBERS ARE:




SET /A ANS=%V%+%U%

echo %ANS%


:EXIT


@ECHO ON
  
Share: 


Didn't find what you were looking for? Find more on USAGE OF SET COMMAND Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of USAGE OF SET COMMAND 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!