0

I need to get all files that are inside a dir including files that are inside all dirs.

I found this post that gets all files of the dir, but it is for the current level files and don't goes any deeper.

Maybe there is already a built-in function to do this?

Community
  • 1
  • 1
ajax333221
  • 10,585
  • 14
  • 56
  • 89

1 Answers1

7

To list all files in the current directory and sub-directories, use:

dir /s
Marc
  • 10,275
  • 2
  • 32
  • 39