Urgent DOS question for oldies!

Page may contain affiliate links. Please see terms for details.

Gollom

MB Enthusiast
SUPPORTER
Joined
May 10, 2006
Messages
9,606
Location
Preston, Lancs
Car
S204 C220CDi Sport ED125 (Mr) Kia Picanto Domino 1.1 (Mrs)
Can anybody remember the old DOS command which allowed me to direct a directory structure into a text file?

Was it something like more ¦ list.txt
 
tree - visual directory structure
You often need to take prints of your physical directory structure but XP has no simple "visual" commands for printing directory contents. Here, try the Tree DOS command and redirect the output to a text file.

tree > mydirectory.txt
print mydirectory.txt
 
try 'dir > filename'

oops - I think 210 fan has the right answer (if you need all directories)
 
Remembered - used what Ted said but with /s

Thanks all!
 
Last edited:
tree - visual directory structure
You often need to take prints of your physical directory structure but XP has no simple "visual" commands for printing directory contents. Here, try the Tree DOS command and redirect the output to a text file.

tree > mydirectory.txt
print mydirectory.txt


But this gives a better result

Addded /f to include all files in the directory

tree /f >myfile.txt

What a forum!
 
> is the redirect symbol which will redirect standard output to somewhere else (usually a file)

| is the pipe symbol which 'pipes' output from one command into another so 'dir' (or in unix) 'ls | more' will take the output fro lhe dir/ls command and put it to the more (paging) command.
 
Would have loved to have seen this earlier. I am still a heavy user of DOS :eek:
 
Thank goodness for Technical Engineers to help out when Sales get stuck...;) ;) :p :D
 

Users who are viewing this thread

Back
Top Bottom