Knowledge Walls
John Peter
Pune, Maharashtra, India
Things to Know [cont'd]
%% (Mod) Operator in Arithmetic Operators of MS-DOS Commands
37928 Views
How it works 
%% modules operator in ms dos batch file is used to get reminder value of given two numbers.

Expression
SET /a re=a%%b
Example
@echo off
REM Example to divide two numbers to get reminder value using %% Operator in ms dos batch file

SET a=23
SET b=10

SET /a c=a%%b
ECHO C value is %c%

SET /p exit=Press enter to exit
Output 
Next Topics
Next lessons of current book.
Relational Operators of MS-DOS Commands
Relational Operators of MS-DOS Commands
Relational Operators of MS-DOS Commands
Relational Operators of MS-DOS Commands
Previous Topics
Previous lessons of current book.
Arithmetic Operators of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
Best Lessons of "MS-DOS Commands"
Top lessons which are viewed more times.
Arithmetic Operators of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
String manipulation of MS-DOS Commands
Relational Operators of MS-DOS Commands
String manipulation of MS-DOS Commands
String manipulation of MS-DOS Commands
Things to Know of MS-DOS Commands
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details