How to Create a Text File List of the Contents of a Folder
ID: Q196158
|
The information in this article applies to:
-
Microsoft Windows 98
-
Microsoft Windows 95
SUMMARY
This article describes how to create a text (.txt) file that contains a
list of the contents of a folder. This may be useful if you need to view
or print a list of the contents of a folder.
MORE INFORMATION
To create a text file that contains a list of the contents of a folder,
use the following steps:
- Click Start, point to Programs, and then click MS-DOS Prompt.
- At the command prompt, navigate to the drive that contains the folder
whose contents you want to list. For example, if you want to create a
text file that contains a list of the contents of a folder on drive C,
type the following command and then press ENTER:
c:
- At the command prompt, navigate to the folder whose contents you want
to list. For example, if you want to create a text file that contains a
list of the contents of the Windows folder on drive C, type the
following commands, pressing ENTER after each command:
cd\
cd windows
- Type the following command, and then press ENTER
dir > <file name>.txt
where <file name> is the name of the text file you are creating. For
example, if you want to create a file named windowsfolderlist.txt, type
the following command, pressing ENTER after the command:
dir > windowsfolderlist.txt
NOTE: The text file you create will be located in the folder you are in
when you perform these steps. In the preceding example, the
windowsfolderlist.txt file will be located in the Windows folder.
- Use a text editor, such as WordPad, to view or print this file.
Additional query words:
98
Keywords : kbenv kbtool win95 win98
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: February 2, 1999