I have a really simple for loop I'm trying to do in a windows CMD prompt/batch file (I've tried both with %i in command line and %%i in batch file):
for %%i in (workspace\*) do echo %%i
I wan't to display all the sub folders in a folder (just as a really simple example to get the loop working) but nothing is displayed.
What am I doing wrong here?
dir workspace
? Do you have the correct privileges on theworkspace
folder?dir workspace
from the same command prompt outputs the list of folders I want to run the command across. This is why I feel like I'm banging my head against a wall here. This should be so simple and "just work" but it is just doing nothing.dir /s/b