Top "Delayedvariableexpansion" questions

Delayed variable expansion causes a Windows batch file to evaluate variables at run time instead of parse time.

Arrays, linked lists and other data structures in cmd.exe (batch) script

I was playing with cmd.exe, but in its help I didn't find any info, how to define arrays. I …

arrays windows batch-file cmd delayedvariableexpansion
windows batch SET inside IF not working

when I'm running this script (from a .bat file): set var1=true if "%var1%"=="true" ( set var2=myvalue echo %var2% ) …

windows batch-file cmd delayedvariableexpansion
Example of delayed expansion in batch file

Can someone give me an example of where a batch script would act differently with or without delayed expansion? Are …

windows batch-file cmd environment-variables delayedvariableexpansion
Windows Batch Variables Won't Set

I think I ran into a bug in Window's batch scripting. I cannot set variables that are in an expanded …

windows batch-file if-statement cmd delayedvariableexpansion
Why are my set commands resulting in nothing getting stored?

I am trying to access the value of TOMCAT_VER later on, but it appears as an empty string. if …

windows batch-file cmd delayedvariableexpansion
Batch delayed expansion not working

Ok, I'm getting crazy and I don't know what else to do, I've tried several things and nothing is working. …

windows batch-file delayedvariableexpansion
Cmd and exclamation marks - Part II

I'm really wondering why my string replacement procedure works when parsing text files containing any special characters including exclamation marks. …

windows batch-file cmd delayedvariableexpansion
Variables are not behaving as expected

I've been wrestling trying to get the syntax right on this batch file and I cannot figure out why some …

windows batch-file cmd environment-variables delayedvariableexpansion