I have the following problem in batch scripting.
I have this code lines
for /f "tokens=*" %%d in ('dir /b /s a2lfiles_merger*.txt') do set merger_list=%%d
echo %merger_list%
and the result is Echo is OFF
Then i tried this code
for /f "tokens=*" %%d in ('dir /b /s a2lfiles_merger*.txt') do echo %%d
The result is C:\Users\user\Desktop\Build\Input\JOB_1\a2lfiles_merger.txt
So, the question is why i cannot set a variable with the path? I need to use it in the next steps and now i am stuck in this situation. Can anyone find a solution ? Thank you all in advance!