Ich habe folgendes Batch-Skript geschrieben:
Setlocal enabledelayedexpansion
Set /A h1 = 12
Set /A m1 = 10
Set /A h2 = 14
Set /A m2 = 50
If %h2% GTR %h1% (
Set /A h = %h2% - %h1% -1
Set /A m = 60 - %m1% + %m2%
If "%m%" GEQ 60 (
Set /A m = %m% - 60
Set /A h = %h% + 1...