Recursive list of directory from CMD or DOS

By: PrometheusUnbound
February 22, 2010

To recursively list a directory from the CMD prompt or DOS, use the xcopy command.

Let's say I want to list C:\Documents and Settings\Joe Blow

Go to a different directory, say C:\Documents and Settings

xcopy "C:\Documents and Settings\Joe Blow\*.*" /E /L /Y >>file.lst

The /E will recurse, the /L will LIST instead of copying /Y will suppress xcopy from asking you if you want to overwrite file.lst.

Cannot stand to see bad information out there.


Need more help?
Describe your Problem
Example: Hard Drive Not Detected on My PC

Ask Question