Recursive directory listing in DOS (or Windows CMD prompt)
Found this resource during a data recovery and found it very helpful. Mirroring here.
Recursive list of directory from CMD or DOS
By: PrometheusUnbound
February 22, 2010To 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.
Comments are closed.