1

I have turned on EnableDelayedExpansion:

setlocal EnableDelayedExpansion 

How can I turn it off (using code)?

1
  • 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 Commented Dec 28, 2016 at 18:14

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.