Microsoft Knowledge Base Email Alertz

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 if you need to view or print a list of the contents in a folder.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 196158 - Last Review: January 23, 2007 - Revision: 2.4

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

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you. Visit the Windows Vista Solution Center
This article was previously published under Q196158

On This Page

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

  1. Click Start, point to Programs, and then click MS-DOS Prompt (or Command Prompt in Windows NT).
  2. 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:
  3. 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
  4. Type the following command at a command prompt, and then press ENTER, where filename is the name of the text file that you are creating:
    dir > filename.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.
  5. 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:
  1. In Microsoft Outlook, click Other Shortcuts on the shortcut bar.
  2. Click My Computer.
  3. Double-click the folder that you want to open.
  4. 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.
  5. If Print is not an available option on the File menu, you can use the Print icon button or follow these steps:
    1. On the File menu, click Page Setup.
    2. Click Table Styles, click Print Preview, and then click Print.

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
Keywords: 
kbenv kbhowto kbprod2web KB196158
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

vinu Report As Irrelevant  
Written: 2/23/2005 5:09 AM
thanks for the tips given your site is very useful. you provide quality help when needed and that which are fruitful. aliv@rediffmail.com

Tankseruba - http://www.sharktime.com/ Report As Irrelevant  
Written: 4/18/2009 5:27 AM
Easier way is use wList: http://www.sharktime.com/us_wList.html Create file list simple with right click menu. T.