batch file - Setting cmd.exe /V:ON flag without starting new instance -


Is there any way to enable execution-time variable extensions for CMD.XA (usually cmd / V: current ) without starting a new instance of CMD.exe?

Similarly, can other settings / flags be changed when flying?

Try this:

  setlocal enabledelayedexpansion  

There is also

  Setyocol enabled extension  

which is equivalent to cmd / E: ON .

Reference: setlocal /? .


Comments