batch-skript

About this tag
This tag covers discussions about batch-skript, the German term for batch scripting on Windows. Content includes troubleshooting nested IF statements, variable arithmetic with Set /A, and delayed expansion using Setlocal enabledelayedexpansion. Common issues involve conditional logic not executing as expected, especially when comparing or calculating time values. Users seek help with syntax errors and logic flaws in their batch files. The tag is relevant for Windows administrators and power users automating tasks via cmd.exe scripts.
  1. U

    Windows 11 Probleme mit Batch-Skript - If-Verschachtelung

    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...
Back
Top