I have a batch script trying to execute out of anthill to get the folder names containing plsql to be compiled.
for /F %%a in ('dir /b D:\AHP_WorkDir\var\jobs\projects\rprt_test\rprt_test\plsql') do (
set FOLDER=%%a
echo *** PROCESSING FOLDER %FOLDER% ***
)
This echos * PROCESSING FOLDER *
as if the variable is not getting set, which I'm pretty sure is true after spending way too long on verifying it
So...What am I doing wrong?
ENABLEDELAYEDEXPANSIONHELP FORorFOR /?from the command line. Hint - look for a discussion of Delayed Expansion.HELP SET, notHELP FOR. And sorry if my prior comment came across as harsh. Obviously many people struggle to find the answer on their own, otherwise the question would not be so common! But I think that is more a reflection of the esoteric nature of batch and the lack of good documentation. It just becomes tiresome for those of us that regularly provide answers on this forum.