0

I have turned on EnableDelayedExpansion:

setlocal EnableDelayedExpansion

How can I turn it off (using code)?

Robert Columbia
  • 6,313
  • 15
  • 32
  • 40
Michał R.
  • 75
  • 1
  • 7
  • 3
    It depends on the situation...`setlocal DisableDelayedExpansion` or `EndLocal`. But If you use the latter, you'll lose all variables you've changed/created after the `setlocal EnableDelayedExpansion` – J.Baoby Dec 28 '16 at 18:14

1 Answers1

2

Use setlocal DisableDelayedExpansion. On the command prompt, type setlocal /? to see this indicated. This related question (not a dupe) suggests using setlocal /? to get help with setlocal and also provides more information about setlocal in general.

Community
  • 1
  • 1
Robert Columbia
  • 6,313
  • 15
  • 32
  • 40