dosdirectory-listing

Recursive directory listing in DOS


How do we achieve a recursive directory listing in DOS?

I'm looking for a command or a script in DOS which can give me the recursive directory listing similar to ls -R command in Unix.


Solution

  • You can use:

    dir /s
    

    If you need the list without all the header/footer information try this:

    dir /s /b
    

    (For sure this will work for DOS 6 and later; might have worked prior to that, but I can't recall.)