Printing Directories part 2
Home
Up
Printing directories part 3

I COMMAND THEE TO PRINT A DIRECTORY--PART 2 OF 3

In our last tip, we showed you how to print a directory listing by creating a *.txt file that you can open and print from any word processor: Assuming you want to print a listing of drive C by creating the text file C:\My Documents\DirListing.txt, open an MS-DOS Prompt window and use the following command line:

dir C:\ /S > C:\DirListing.txt

Would you prefer to send that information directly to the printer (for example, if you don't need to manipulate the information using your word processor's commands)? Exit to a DOS prompt, type

dir C:\ /S > prn

and press Enter.

(Tip: To print a listing of only one folder, as opposed to an entire drive, type its path after the C:\ in the above command line.)

In our next tip, we'll discuss some handy switches for these DOS commands....

 

last updated: Monday, 24. May 1999 09:47:12 -0500