Code: Select all
for %%x in (*.txt) do ^
echo %%x
Removing the spaces before echo leads to the expected results.' ' is not recognized as an internal or external command,
operable program or batch file.
The question:
Was it always like this? I am not entirely sure but I think I used it like this - with the extra spaces - in the past.
(Win10 1909 x64)