Microsoft KB Archive/196158

= How to create a text file list of the contents of a folder =

Article ID: 196158

Article Last Modified on 1/23/2007

-

APPLIES TO


 * Microsoft Windows 98 Standard Edition
 * Microsoft Windows 95
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Outlook 2000 Standard Edition
 * Microsoft Outlook 97 Standard Edition
 * Microsoft Outlook 98 Standard Edition
 * Microsoft Windows Millennium Edition

-



This article was previously published under Q196158





SUMMARY
This article describes how to create or print a list of files in a folder at a command prompt or in Microsoft Outlook. This procedure may be useful when you view or print a list of the contents in a folder.



MORE INFORMATION
To create a text file that contains a list of the contents in a folder, use one of the following methods.

How to Create a File List at a Command Prompt
 Click Start, point to Programs, and then click MS-DOS Prompt (or Command Prompt in Windows NT). At a command prompt, locate 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 at a command prompt, and then press ENTER:

c:

 At a command prompt, locate 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 in the Windows folder on drive C, type the following commands at a command prompt, and press ENTER after you type each command:

cd\

cd windows

 Type the following command at a command prompt, and then press ENTER, where  is the name of the text file that you are creating:

dir > .txt

For example, if you want to create a file named Windowsfolderlist.txt, type the following command at a command prompt, and then press ENTER:

dir > windowsfolderlist.txt

NOTE: The text file that you create is located in the folder that you are in when you follow these steps. In the earlier example, the Windowsfolderlist.txt file is located in the Windows folder. Use a text editor, such as Notepad, to view or print this file.

NOTE: You cannot export or print a list of the files that are contained in a folder in Windows Explorer.

How to Print a File List in Outlook
Outlook contains file-management abilities, as well as e-mail message, calendar, and contact management. Microsoft Outlook 97 and Microsoft Outlook 98 contain this ability by default; Microsoft Outlook 2000 2002 users may have to install the Integrated File Management option to turn on file-management abilities. To install the Integrated File Management option in Outlook 2000:  In Microsoft Outlook, click Other Shortcuts on the shortcut bar.</li> Click My Computer.</li> Double-click the folder that you want to open.</li> On the File menu, click Print, click Table Syle.

Outlook prints a list of every file that is in that folder and includes the file size, date, and other attributes.</li> If Print is not an available option on the File menu, you can use the Print icon button or follow these steps:  On the File menu, click Page Setup.</li> Click Table Styles, click Print Preview, and then click Print.</li></ol> </li></ol>

Additional query words: 98 directory directories listing subfolder

Keywords: kbenv kbhowto kbprod2web KB196158

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.