Jump to content

Recommended Posts

Posted

Hi

 

How can I create a .txt file or print a list of all the subfolders within a

folder?

 

Example:

 

Books

Author1's name

Book title

Book title

Book title

Author2's name

Book title

Book title

 

etc.

 

I don't want to list the actual files.

 

I am using XP pro in Classic mode.

 

 

--

¦zulu¦

  • Replies 12
  • Created
  • Last Reply

Popular Days

Guest Seahawk60B
Posted

Re: Print folders

 

On Mar 7, 9:03 am, "zulu" <noth...@ntlworld.com> wrote:

> Hi

>

> How can I create a .txt file or print a list of all the subfolders within a

> folder?

>

> Example:

>

> Books

>             Author1's name

>                                     Book title

>                                     Book title

>                                     Book title

>             Author2's name

>                                     Book title

>                                     Book title

>

> etc.

>

> I don't want to list the actual files.

>

> I am using XP pro in Classic mode.

>

> --

> ¦zulu¦

 

Go to a command prompt and type DIR /? to see the directory listing

options -

 

The following two commands will do what you request, depending on how

you want the format to look:

 

DIR /AD /S >dirlist.txt

 

or

 

DIR /AD /B /S >dirlist.txt

Posted

Re: Print folders

 

 

"Seahawk60B" <jetranger57b@yahoo.com> wrote in message

news:68e94892-e844-4864-888b-43b6fcefa21a@m3g2000hsc.googlegroups.com...

On Mar 7, 9:03 am, "zulu" <noth...@ntlworld.com> wrote:

> Hi

>

> How can I create a .txt file or print a list of all the subfolders within

> a

> folder?

>

> Example:

>

> Books

> Author1's name

> Book title

> Book title

> Book title

> Author2's name

> Book title

> Book title

>

> etc.

>

> I don't want to list the actual files.

>

> I am using XP pro in Classic mode.

>

> --

> ¦zulu¦

 

Go to a command prompt and type DIR /? to see the directory listing

options -

 

The following two commands will do what you request, depending on how

you want the format to look:

 

DIR /AD /S >dirlist.txt

 

or

 

DIR /AD /B /S >dirlist.txt

 

Sorry, but I am doing something wrong :-(((

 

I am doing:

 

 

Start

Run

G:/BOOKS /AD /S >dirlist.txt

 

or

 

Start

Run

G:/BOOKS /AD /B /S >dirlist.txt

 

Both just open the BOOKS folder

 

--

¦zulu¦

Guest Another Brian
Posted

Re: Print folders

 

"zulu" <nothere@ntlworld.com> wrote in message

news:%23IxaKJHgIHA.3780@TK2MSFTNGP06.phx.gbl...

>

> "Seahawk60B" <jetranger57b@yahoo.com> wrote in message

> news:68e94892-e844-4864-888b-43b6fcefa21a@m3g2000hsc.googlegroups.com...

> On Mar 7, 9:03 am, "zulu" <noth...@ntlworld.com> wrote:

>> Hi

>>

>> How can I create a .txt file or print a list of all the subfolders

>> within a

>> folder?

>>

>> Example:

>>

>> Books

>> Author1's name

>> Book title

>> Book title

>> Book title

>> Author2's name

>> Book title

>> Book title

>>

>> etc.

>>

>> I don't want to list the actual files.

>>

>> I am using XP pro in Classic mode.

>>

>> --

>> ¦zulu¦

>

> Go to a command prompt and type DIR /? to see the directory listing

> options -

>

> The following two commands will do what you request, depending on

> how

> you want the format to look:

>

> DIR /AD /S >dirlist.txt

>

> or

>

> DIR /AD /B /S >dirlist.txt

>

> Sorry, but I am doing something wrong :-(((

>

> I am doing:

>

>

> Start

> Run

> G:/BOOKS /AD /S >dirlist.txt

>

> or

>

> Start

> Run

> G:/BOOKS /AD /B /S >dirlist.txt

>

> Both just open the BOOKS folder

>

> --

> ¦zulu¦

>

You need to actually the command prompt

 

Start > Run

cmd

 

Then in the command prompt type:

 

dir G:/books /ad /b /s > dirlist.txt

Posted

Re: Print folders

 

 

"Another Brian" <notbrian@somewhere.nocom> wrote in message

news:%231KD3nIgIHA.320@TK2MSFTNGP02.phx.gbl...

> "zulu" <nothere@ntlworld.com> wrote in message

> news:%23IxaKJHgIHA.3780@TK2MSFTNGP06.phx.gbl...

>>

>> "Seahawk60B" <jetranger57b@yahoo.com> wrote in message

>> news:68e94892-e844-4864-888b-43b6fcefa21a@m3g2000hsc.googlegroups.com...

>> On Mar 7, 9:03 am, "zulu" <noth...@ntlworld.com> wrote:

>>> Hi

>>>

>>> How can I create a .txt file or print a list of all the subfolders

>>> within a

>>> folder?

>>>

>>> Example:

>>>

>>> Books

>>> Author1's name

>>> Book title

>>> Book title

>>> Book title

>>> Author2's name

>>> Book title

>>> Book title

>>>

>>> etc.

>>>

>>> I don't want to list the actual files.

>>>

>>> I am using XP pro in Classic mode.

>>>

>>> --

>>> ¦zulu¦

>>

>> Go to a command prompt and type DIR /? to see the directory listing

>> options -

>>

>> The following two commands will do what you request, depending on how

>> you want the format to look:

>>

>> DIR /AD /S >dirlist.txt

>>

>> or

>>

>> DIR /AD /B /S >dirlist.txt

>>

>> Sorry, but I am doing something wrong :-(((

>>

>> I am doing:

>>

>>

>> Start

>> Run

>> G:/BOOKS /AD /S >dirlist.txt

>>

>> or

>>

>> Start

>> Run

>> G:/BOOKS /AD /B /S >dirlist.txt

>>

>> Both just open the BOOKS folder

>>

>> --

>> ¦zulu¦

>>

> You need to actually the command prompt

>

> Start > Run

> cmd

 

Ah.....

 

>

> Then in the command prompt type:

>

> dir G:/books /ad /b /s > dirlist.txt

>

Does nothing :-((

All I get is another command pronpt.

 

Tried typing it all , and rt click and paste.

neithe way works.

Sorry :-(((

 

--

¦zulu¦

Posted

Re: Print folders

 

"zulu" <nothere@ntlworld.com> wrote:

>Does nothing :-((

>All I get is another command pronpt.

>

>Tried typing it all , and rt click and paste.

>neithe way works.

>Sorry :-(((

 

google "Karen's Power Tools"

 

You'll find a nice FREE GUI program that does what you want.

Posted

Re: Print folders

 

 

"PD43" <pauld1943@comcast.net> wrote in message

news:c8a3t3hndn3c34en5qj1emb7l9un2cek16@4ax.com...

> "zulu" <nothere@ntlworld.com> wrote:

>

>>Does nothing :-((

>>All I get is another command pronpt.

>>

>>Tried typing it all , and rt click and paste.

>>neithe way works.

>>Sorry :-(((

>

> google "Karen's Power Tools"

>

> You'll find a nice FREE GUI program that does what you want.

 

 

On my way >>>>>>>>>>>>

TYVM

Guest HeyBub
Posted

Re: Print folders

 

zulu wrote:

>

> Ah.....

>

>

>>

>> Then in the command prompt type:

>>

>> dir G:/books /ad /b /s > dirlist.txt

>>

> Does nothing :-((

 

Yes it does. It put what you wanted in the file "dirlist.txt"

 

 

> All I get is another command pronpt.

>

> Tried typing it all , and rt click and paste.

> neithe way works.

> Sorry :-(((

Posted

Re: Print folders

 

 

"HeyBub" <heybub@gmail.com> wrote in message

news:u5wfPCLgIHA.3352@TK2MSFTNGP04.phx.gbl...

> zulu wrote:

>>

>> Ah.....

>>

>>

>>>

>>> Then in the command prompt type:

>>>

>>> dir G:/books /ad /b /s > dirlist.txt

>>>

>> Does nothing :-((

>

> Yes it does. It put what you wanted in the file "dirlist.txt"

>

 

 

I searched for that ang foung... a blak page...

 

Is the priblem that *G* is not the main drive?

(it is a usb2 drive, one of three

)

>

>

>> All I get is another command pronpt.

>>

>> Tried typing it all , and rt click and paste.

>> neithe way works.

>> Sorry :-(((

>

>

Posted

Re: Print folders

 

 

"HeyBub" <heybub@gmail.com> wrote in message

news:u5wfPCLgIHA.3352@TK2MSFTNGP04.phx.gbl...

> zulu wrote:

>>

>> Ah.....

>>

>>

>>>

>>> Then in the command prompt type:

>>>

>>> dir G:/books /ad /b /s > dirlist.txt

>>>

>> Does nothing :-((

>

> Yes it does. It put what you wanted in the file "dirlist.txt"

 

 

 

I searched for that and found... a blank page...:-((

 

Is the problem that *G* is not the main drive?

(it is a usb2 drive, one of three).

>

>

>

>> All I get is another command pronpt.

>>

>> Tried typing it all , and rt click and paste.

>> neithe way works.

>> Sorry :-(((

>

>

Posted

Re: Print folders

 

zulu wrote:

> "HeyBub" <heybub@gmail.com> wrote in message

> news:u5wfPCLgIHA.3352@TK2MSFTNGP04.phx.gbl...

>> zulu wrote:

>>> Ah.....

>>>

>>>

>>>> Then in the command prompt type:

>>>>

>>>> dir G:/books /ad /b /s > dirlist.txt

>>>>

>>> Does nothing :-((

>> Yes it does. It put what you wanted in the file "dirlist.txt"

>

>

>

> I searched for that and found... a blank page...:-((

>

> Is the problem that *G* is not the main drive?

> (it is a usb2 drive, one of three).

>

>>

>>

>>> All I get is another command prompt.

>>>

>>> Tried typing it all , and rt click and paste.

>>> neither way works.

>>> Sorry :-(((

 

That command should read dir G:\books /ad /b /s > dirlist.txt

 

The slash (rather than backslash) should generate an error message.

 

--

Joe =o)

Posted

Re: Print folders

 

 

"Elmo" <elmogeek@iglou.invalid> wrote in message

news:evhwP4SgIHA.5900@TK2MSFTNGP02.phx.gbl...

> zulu wrote:

>> "HeyBub" <heybub@gmail.com> wrote in message

>> news:u5wfPCLgIHA.3352@TK2MSFTNGP04.phx.gbl...

>>> zulu wrote:

>>>> Ah.....

>>>>

>>>>

>>>>> Then in the command prompt type:

>>>>>

>>>>> dir G:/books /ad /b /s > dirlist.txt

>>>>>

>>>> Does nothing :-((

>>> Yes it does. It put what you wanted in the file "dirlist.txt"

>>

>>

>>

>> I searched for that and found... a blank page...:-((

>>

>> Is the problem that *G* is not the main drive?

>> (it is a usb2 drive, one of three).

>>

>>>

>>>

>>>> All I get is another command prompt.

>>>>

>>>> Tried typing it all , and rt click and paste.

>>>> neither way works.

>>>> Sorry :-(((

>

> That command should read dir G:\books /ad /b /s > dirlist.txt

>

> The slash (rather than backslash) should generate an error message.

>

 

Oh welll, trying kept me off the streets for a while... :-))

 

 

I managed to do what I wanted with the Karen's Powertoys program after a few

false starts.

 

(*Karen's Directory Printer* - very nice, thank you Karen).

 

<hint>

Don't print out the whole directory until you are sure you have the software

configured correctly....

Fortunately the printer was nearly out of paper! <g>

 

 

Thanks to all for your input.

 

--

¦zulu¦

Guest Bruce Chambers
Posted

Re: Print folders

 

zulu wrote:

> Hi

>

> How can I create a .txt file or print a list of all the subfolders within a

> folder?

>

> Example:

>

> Books

> Author1's name

> Book title

> Book title

> Book title

> Author2's name

> Book title

> Book title

>

> etc.

>

> I don't want to list the actual files.

>

> I am using XP pro in Classic mode.

>

>

 

 

From the command prompt (Start > Run > Cmd.exe), simply change to

the desired directory and type "dir > filelist.txt" or "dir > lpt1,"

just as one used to do in DOS. Any of the switches for the DIR command

(type "dir /?") will work with this command, if you wish to modify the

output. You can then subsequently edit the resulting text file using

NotePad, WordPad, Word, etc.

 

Alternatively:

 

HOW TO Add a Print Directory Feature for Folders in Windows XP

http://support.microsoft.com/?kbid=321379

 

Directory Lister

http://www.krksoft.com/index.php

 

 

 

--

 

Bruce Chambers

 

Help us help you:

http://www.catb.org/~esr/faqs/smart-questions.html

 

http://support.microsoft.com/default.aspx/kb/555375

 

They that can give up essential liberty to obtain a little temporary

safety deserve neither liberty nor safety. ~Benjamin Franklin

 

Many people would rather die than think; in fact, most do. ~Bertrand Russell

 

The philosopher has never killed any priests, whereas the priest has

killed a great many philosophers.

~ Denis Diderot


×
×
  • Create New...