I have a logic that I need to implement in a directory containing multiple sub-directories and files. Basically I want to execute the same set of commands in some specific sub-directories (name starting with letter 'x'). So far I have tried this in a .bat
file.
for /r %%a in (x*) do (
pushd %%a
[some command]
popd
)
This bat file doesn't run. What am I missing? I tried to refer other similar questions but they did not help either