I'm currently using the following command to list some directories:

```
dir /b /s /AD > c:\temp\dir_list.txt

```

This gives me almost the list that I need. But it is way too much data because some folders have lots of subfolders that I don't want to see in my listing.

Is it possible to limit the recursion depth of the command to 3 (for example)?

```
c:\dir_1\dir_2\dir_3\dir_foo

```

So I don't want to see the directory `dir_foo` if I execute the command in the above example in `c:\>`, but just the `dir_n` ones.

Maybe without a batch or VB script?