dir can show content of multiple directories if they are specified ";" separated:
mkdir test\a mkdir test\b touch test\a\a1.txt test\a\a2.txt test\b\b1.txt test\b\b3.dat dir /b test\a;test\b a1.txt a2.txt b1.txt b3.dat