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.
skripting
About this tag
The tag skripting on WindowsForum.com covers scripting topics, primarily focused on batch scripting in Windows. Discussions include troubleshooting complex batch scripts, such as nested IF conditions, variable handling with delayed expansion, and arithmetic operations. Users seek help with script logic errors, syntax issues, and understanding command behavior. The content is practical, addressing real-world scripting problems encountered by Windows users. While the tag name is German, the discussions are technical and relevant to anyone writing or debugging batch scripts on Windows systems.
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...