Search found 1 match

by juztsteve
01 Mar 2022 15:30
Forum: DOS Batch Forum
Topic: Doing MOD calculations in batch
Replies: 8
Views: 42814

Re: Doing MOD calculations in batch

Kind of late to reply to this but here is a script I wrote that resolved the % issue by using double quotes: @echo off title [ Mod Calculator ] set /p "divnd=Enter a dividend: " set /a "divnd2=%divnd%" if %divnd% lss 0 set /a "divnd-=(divnd*2)" echo: set /p "divsr=Enter a divisor: " set /a "qtnt=%di...