Spiga

Import Windows XP's Tree command results into Word

Import Windows XP's Tree command results into Word
We can use the Tree command to research our folders on Windows XP hard disk that gives results fast—too fast for our eye to catch. Here's how to use Word to create a Tree we can read in detail and at our 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:
a)Open a Command Prompt window. b)Use the CD \ command to access the root folder. c)Type Tree > Tree.rtf d)Close the Command Prompt window. e)Launch Word and open a new document. f)Go to File Page Setup. g)In the Page Setup dialog box, choose the Landscape Orientation, and set the left and right margins to 0. h)Click OK and click the Ignore button in the margins warning dialog box. i)Go to Insert File. j)In the Insert File dialog box, locate the Tree.rtf file and click the Insert button. k)In the File Conversion dialog box, select the MS-DOS option and click OK.l)You can save the document and then scroll through the graphical tree structure showing all the folders on your hard disk.After following these steps you'll get the desired results.
Note:- This tip applies to both Windows XP Home and Windows XP Professional.

0 comments: