Discussion:
folders
(too old to reply)
HELP ME!!!!
2004-02-06 23:11:07 UTC
Permalink
I just need help finding a way to place folder names in a list. I want to display the folder names in Excel or Word or some kind of word processing program without having to type them in individually.
Ken Blake, MVP
2004-02-06 23:19:27 UTC
Permalink
Post by HELP ME!!!!
I just need help finding a way to place folder names in a list.
I
Post by HELP ME!!!!
want to display the folder names in Excel or Word or some kind
of
Post by HELP ME!!!!
word processing program without having to type them in
individually.


The folders on your drive?

Open a command prompt window (Start | Run | CMD) and type

dir c:\ >\path\filename

where \path\filename is whatever you want.

Then open that file in Word.
--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup
bob
2004-02-07 00:16:05 UTC
Permalink
What do I put for path and filename? And do I type it exactly like that? (with <)
Ken Blake, MVP
2004-02-07 01:30:19 UTC
Permalink
Post by bob
What do I put for path and filename?
Are you replying to me? Please quote the message you're replying
to so we can understand you.

As I said, you can put anything you want for path and filename.
If you put C:\Mr anonymoses file or C:\Windows\foldernames it
will work equally well.

The point is that you have to give a name to the place where
you're saving the info so that when you open it in Word, you know
what file to open.
Post by bob
And do I type it exactly like
that? (with <)
No, not <

You need to type >

The > is a redirection character.. It tells the system not to
send the results of the Dir command to the screen but to the file
whose name you supply.
--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup
--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup
bob
2004-02-07 00:36:07 UTC
Permalink
Could somebody please clarify what Ken is saying (for I am an idiot)
chromian
2004-02-07 02:35:53 UTC
Permalink
I think it goes like this:

1. Go to a DOS prompt. (black screen, white letters.)
To do that, you can hit START RUN then type CMD (enter)

2. Go to the directory you are interested in. You can do this with the CD
(change directory) command.
E.g At C:\, cd myfiles
at c:\myfiles type cd pictures
at cd\pictures type landscapes (or whatever your
directory is called)

.3. Finally, in the directory where you want the list, type
dir >c:\dirlist.txt

This will create a file called c:\dirlist.txt which you can open in a
text editor.

((or, you could have typed dir c:\myfiles\pictures\landscapes >
c:\dirlist.txt which would have done the same thing.) The
greater-than symbol is the important thing. It redirects the screen output
to a file.

Why Windows does not make this easy is beyond all of us.

If this doesn't help, you may need to buy a book. Sorry.
Post by bob
Could somebody please clarify what Ken is saying (for I am an idiot)
Loading...