All Questions
1
question
1
vote
2
answers
2k
views
Why is change directory not working when SETLOCAL ENABLEDELAYEDEXPANSION is used
I have an existing windows batch script (named as test1.bat) as below :
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
set nop=4
for /l %%z in (1, 1, %nop%) do (
set x=%%z
echo !x!
)
chdir /d D:\app\
...