Batch script for loop won’t set variable
This is essentially a duplicate of a question asked earlier today. Here’s my answer from said question… You’ll want to look at the EnableDelayedExpansion option for batch files. From the aforementioned link: Delayed variable expansion is often useful when working with FOR Loops. Normally, an entire FOR loop is evaluated as a single command even … Read more