Michał R.
Michał R.

Reputation: 75

Batch - turn off EnableDelayedExpansion

I have turned on EnableDelayedExpansion:

setlocal EnableDelayedExpansion

How can I turn it off (using code)?

Upvotes: 0

Views: 1749

Answers (1)

Robert Columbia
Robert Columbia

Reputation: 6418

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.

Upvotes: 2

Related Questions