You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
variablen
About this tag
The tag 'variablen' on WindowsForum.com covers discussions about variables in Windows batch scripting, particularly in German-language threads. Content includes troubleshooting nested IF statements and arithmetic operations with SET /A, where users encounter issues with variable expansion and conditional logic. Recurring themes involve delayed expansion, comparison operators like GTR and GEQ, and calculating time differences. The tag is relevant for users writing batch scripts on Windows and seeking help with variable handling and control flow.
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...