I am trying to list all the files with a specific extension but not the current directory.
Something like this
dir "C:\x y\test\" /b /s *.txt
but instead of the expected result it lists all the files from the specified directory AND the ones from the current directory.
Is there a way to get list the files with a specific extension from another directory than the current one