atw: Re: make a directory listing into a word file

Good thinking Deborah (C)

(Before typing your other commands, at the command prompt DOS shell,
you might also like to type DOSKEY and press Enter.  This will make the
DOS shell store a list of your most recent commands, so that you can
scroll backward or forwards through them with the up or down arrow
keys, then edit or reuse them as you like.  (Some DOS shell versions do this
anyway but I like to use DOSKEY as a matter of course, so that my past
commands are readily accessible and editable for me.) Then using the
insert key will enable you to either overtype or add to those previously
used commands.  Saves heaps of retyping.

If, at any time, you'd like to clear the wording clutter from your command
prompt, type CLS (for clear screen) and press Enter.

If you'd like your command prompt to become a full screen, rather than a
window on your desktop, press Alt+Enter.  Pressing Alt+Enter again returns
the DOS shell to being a window on your Windows desktop.
(Caution: swapping too rapidly / frequently back and forth between these
DOS screen and desktop modes can cause major system instabilities (AKA
crashes) due to video driver conflicts, so handle with care.

Also, if you want to also create a directory tree, don't forget the MS-DOS
TREE command.

The greater than symbol (>) redirects the screen / DOS shell output to the
text file name that you specify.

So, if you use the command prompt and make the current directory (CD) the
point from which you run you command, then type Tree > MYTREE.TXT and
a directory tree will be created in a text file called MYTREE.TXT.

Of course, you can specify a full file path for where you want that that
text file to be created, if you wish, but this is just a rather basic example.

Then open that text file in Notepad (either just type the name of the file in
the DOS prompt or double-click on the file icon in the Windows File
Explorer - Flag+E to run this application) and everything must be in Desktop
display mode with the command prompt as a window for this to work.

Where Notepad displays the tree with lots of text where its branches and
trunk should be, set the default Notepad font to Terminal (Edit > Set Font
displays the Font dialog in Notepad) to provide a visual representation of
the DOS tree.

Then you can then either use the text from that file with a TREE style set
to use the Terminal font in Word or simply screen grab the Notepad
window and save the tree that you see as a graphic, which you can crop for
later inclusion. in your Word document.

It would be a shame to have the directory without the tree.

Otherwise, if you want a more graphically modern looking folder type tree,
screen grab the tree from within the Windows File Explorer and crop
to suit.

HT also H.

Cheers,

Michael Granat
Write Ideas

At 09:55 23/11/2004, you wrote:
>The following instructions will create a text file that lists all the =
>files and folders in any drive and directory you specify.
>1. Click on the <Start> button then choose the <Run> option.
>2. Type "Command" in the box (where is says Open) and click on OK.
>3. Type the "<Drive Name:>"  =20
>4. Type "CD <Folder Name you want to open>" =20
>5. Type "dir /s /o /b /n > c:filelist.txt" and wait till you get the DOS =
>Prompt back.  This could take a few minutes, especially if you have a =
>long list of files in the folder.
>6. A file named "filelist.txt" is now created in the c: drive which =
>contains a list of all the files and folders under this directory.=20
>7. Type "Exit" to close the command window.=20
>8. Open filelist.txt.=20
>
>HTH :)
>Deborah


Michael E. Granat
(QGTWD) (FOTROTWYB!)
T/as Write Ideas
E-mail: mailto:writeideas@xxxxxxxxxxxxxx
Web: <http://home.pacific.net.au/~megranat/>
Without Prejudice.
E&OE. 

**************************************************
To post a message to austechwriter, send the message to 
austechwriter@xxxxxxxxxxxxxx

To subscribe to austechwriter, send a message to 
austechwriter-request@xxxxxxxxxxxxx with "subscribe" in the Subject field.

To unsubscribe, send a message to austechwriter-request@xxxxxxxxxxxxx with 
"unsubscribe" in the Subject field.

To search the austechwriter archives, go to 
www.freelists.org/archives/austechwriter

To contact the list administrator, send a message to 
austechwriter-admins@xxxxxxxxxxxxx
**************************************************

Other related posts: