In Windows, how can I see or print a list of all my directories and files?
If you would like to see a list of all your directories and files in Windows
95, 98, Me, NT 4.0, 2000, or XP, first go to the command prompt and make
sure you are in the root directory. To get to the root directory, at the DOS
command prompt, enter:
cd ..Continue to enter the above command until you see a C: prompt (where
C: is your main drive). Then, at the command prompt, enter:
dir /s |moreThe entries will appear one screenful at a time. Press the
Spacebar to scroll through the list. To make your lists easier to read, you
can sort by name. To do so, at the command prompt, enter:
dir /s /o |more To create a text file so that you can print the list of
all your directories and files, at the prompt, enter:
dir /s /o >dir.txtThis will direct the contents of the list to a file
called dir.txt, which you can then open in Wordpad, or any text editor, and
print out.
To create a list for a single directory, you will need to change to the
directory for which you wish to create the list of files and subdirectories,
and then follow the directions above. For example, if you wanted to create a
list of files and subdirectories for a directory called win95, at the
command prompt, you would enter:
cd win95Then you would follow the steps above to list the subdirectories
and files in that directory.