Microsoft KB Archive/63657

Word: Printing a Directory Listing of Files

PSS ID Number: Q63657 Article last modified on 11-02-1994

4.00 5.00

MS-DOS

= SUMMARY =

To print a listing of files in a directory, follow one of the two sets of instructions described below:

  For a complete directory listing that includes filename, date, and file size, go to Library Run and type in COMMAND if running under DOS (or CMD if running under OS/2). Press ENTER. Once at the command prompt, change to the intended directory (for example, CD ). At the command prompt, type DIR > FILENAME.DOC. The filename can be any name not previously used. Now Type “exit” to return to Word. At the Transfer Load “filename:” field, enter FILENAME.DOC. This will load the directory listing into Word, which can now be printed out.   Directory listings can also be spooled directly to the printer instead of to a file by typing the following at the command prompt: DIR > LPT1: Note that LPT1: can also be substituted with LPT2:, COM1: or COM2:. 

KBCategory: kbother KBSubcategory: Additional reference words:

=
================================================================ Copyright Microsoft Corporation 1994.