PDA

View Full Version : Import the results of Windows XP's Tree command into Word



andyman
03-08-2007, 05:58 AM
Using the Tree command to research your folders on your Windows XP hard disk can give you results fast—too fast for your eye to catch. Here's how to use Word to create a Tree you can read in detail and at your own pace.


To find out how many folders there are on your Windows XP hard disk, you can open a Command Prompt and use the Tree command. You'll get a very nice looking graphical tree structure showing all the folders on your hard disk. The only problem is that the display will scroll by your screen so fast and exceed the buffer size, so you'll never be able to see it.

Instead, try using the old MS-DOS pipe to funnel the output of the Tree command to an RTF (Rich Text Format) file. You can then import that RTF file into a specially formatted Word document and have the same graphical tree structure showing all the folders on your hard disk in a document. Here's how:

Open a Command Prompt window.
Use the CD \ command to access the root folder.
Type Tree > Tree.rtf
Close the Command Prompt window.
Launch Word and open a new document.
Go to File | Page Setup.
In the Page Setup dialog box, choose the Landscape Orientation, and set the left and right margins to 0.
Click OK and click the Ignore button in the margins warning dialog box.
Go to Insert | File.
In the Insert File dialog box, locate the Tree.rtf file and click the Insert button.
In the File Conversion dialog box, select the MS-DOS option and click OK.
You can save the document and then scroll through the graphical tree structure showing all the folders on your hard disk.

ssadams
03-11-2007, 11:16 AM
you can also print it out by using the command tree > lpt1 but i wouldnt suggest it as my tree document is 80 pages :)

Mouse
03-11-2007, 11:18 AM
Two-sided printing.

Save the environment.

;)