Sorry, but I added the lines and the dos bat file still can't do division.
But, I admit that reading the help on the topic made no sense.
Here is the bat code, and what is wrong?:
:DOS can't do division
setlocal enableextensions enabledelayedexpansion
SET hours2record=13
SET minutes2record=05
SET tracklength=46800
set /a seconds = %hours2record% * 3600 + %minutes2record% * 60
echo so far so good. Seconds are %seconds%
pause
::SET /A trackdiv=%seconds%/46800 does not work
::SET /A trackdiv=468000/46800 works
::SET /A trackdiv=seconds/46800 does not work either
SET /A %seconds%/%tracklength%
SET /A trackdiv=%seconds%/%tracklength% & does not work
echo trackdiv variable is calculated as %trackdiv% . This is wrong! 47100/46800 does not equal 1! Stupid dos!
pause
setlocal /?
pause
cmd /?
CD C:\DeleteLater
SET /A Div=216/3
ECHO /3 %Div% >> testbat.txt
File testbat.txt/3 72