List specific directory in Windows - Filter in the listing

1

I have the scenario with the following directories in alphabetical order:

Y:\imagens\A001\B001\imagem.jpg
Y:\imagens\A001\B002\imagem.jpg
Y:\imagens\A002\B001\imagem.jpg
Y:\imagens\A002\B002\imagem.jpg
Y:\imagens\A003\B001\imagem.jpg
Y:\imagens\A003\B002\imagem.jpg
Y:\imagens\A004\B001\imagem.jpg
Y:\imagens\A004\B002\imagem.jpg

I'm using the following command to list all files recursively and throwing the output into a file:

dir "Y:\imagens" /a-d /b /s > arquivo_de_saida.txt

It turns out that my command stopped listing the files when it was almost at the end and I do not want to start all over again, because they are millions of files.

I want to list only the directories after "A002".

    
asked by anonymous 01.12.2017 / 21:21

0 answers