Thursday, October 16, 2008

How to Obtain a Recursive Directory Listing in Windows XP tree view

List All files and directories:
dir /a /s /b > c:\test.txt


List only directories:
dir /a:d /s /b > c:\test.txt


Batch file:

dir /a:d /s /b > dir.txt

@echo off
pause

No comments: