How to print contents of a nested multilevel folder

P

PT

I have a folder in My Music which contains the contents of hundreds of my
audio CD's ripped using Windows Media Player.

I can easily expand the folder on screen to its fullest extent using Windows
Explorer.

Is there a WinXP feature, or if not,, a utility which would enable me to
print the folder tree to a text or Word file?

I recall back in the stone age, there was a DOS utility called Tree which
might have done the job.
 
T

Terry R.

The date and time was Fri Apr 10 2009 13:24:49 GMT-0700 (Pacific
Daylight Time), and on a whim, PT pounded out on the keyboard:
I have a folder in My Music which contains the contents of hundreds of my
audio CD's ripped using Windows Media Player.

I can easily expand the folder on screen to its fullest extent using Windows
Explorer.

Is there a WinXP feature, or if not,, a utility which would enable me to
print the folder tree to a text or Word file?

I recall back in the stone age, there was a DOS utility called Tree which
might have done the job.

Hi PT,

Open a command prompt and type
tree /?

It's still here...


Terry R.
 
P

PT

What would be the full command: something which identifies the desired
folder and pipes the tree output to a text or other file

While you're at it, I recall there's a switch on DOS commands to display
instructions and syntax: a question mark or some such thing.
 
T

Terry R.

What would be the full command: something which identifies the desired
folder and pipes the tree output to a text or other file

While you're at it, I recall there's a switch on DOS commands to display
instructions and syntax: a question mark or some such thing.

Ummm, did you even READ what info I gave you?

Terry R.
 
T

Terry R.

The date and time was Fri Apr 10 2009 14:25:30 GMT-0700 (Pacific
Daylight Time), and on a whim, John pounded out on the keyboard:
It does not work for sub folders buyt I sometimes use this . . .

To add the print directory feature to Windows Explorer, follow these steps:

Open Notepad, and then copy and paste the following text into Notepad:

@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit

Hi John,

What is /w? Did you mean /wait? And if you're using start, I would use
the title quotes even if you don't have a title, as I've seen instances
where it will fail without it. i.e. start "" /wait notepad.exe


Terry R.
 
T

Terry R.

The date and time was Friday, April 10, 2009 5:46:39 PM, and on a whim,
John pounded out on the keyboard:
Hi John,

What is /w? Did you mean /wait? And if you're using start, I would use
the title quotes even if you don't have a title, as I've seen instances
where it will fail without it. i.e. start "" /wait notepad.exe


Terry R.

Gee . . . That's a good question. I use to know what the switch /w was but it's been 8 years and I forgot.

OK, I see now. It must be the same as /wait. I have a few versions of this and the ones with the /w holds the DOS box
open till notepad sends it to the printer and deletes "Listing" from the temp folder. If I leave out the /p then it
hold the DOS box open till I close notepad. I usualy don't use the /w I use this one . . .

@echo off
dir %1 /-p /o:gn > "%1%\DirList"
start notepad "%1%\DirList"
exit

Which has a title "DirList"

It's hard to keep up with this stuff when your real job is not with computers.
____ _
| __\_\_o____/_|
<[___\_\_-----<------------------<No Spam Please><
| o'

The title needs to be right after start, i.e. start "title". In a
command prompt, type start /? and you'll get a list of values.


Terry R.
 
J

Jim

I have a folder in My Music which contains the contents of hundreds of my
audio CD's ripped using Windows Media Player.

I can easily expand the folder on screen to its fullest extent using Windows
Explorer.

Is there a WinXP feature, or if not,, a utility which would enable me to
print the folder tree to a text or Word file?

I recall back in the stone age, there was a DOS utility called Tree which
might have done the job.


http://www.karenware.com/powertools/ptdirprn.asp ( free )
 
A

almostbob

in which the title prompt is clearly marked as optional

start ["title"]

--
_ _
Terry R. said:
The date and time was Friday, April 10, 2009 5:46:39 PM, and on a whim,
John pounded out on the keyboard:
@echo off dir %1 /-p /o:gn > "%temp%\Listing" start /w notepad /p
"%temp%\Listing" del "%temp%\Listing" exit
Hi John,

What is /w? Did you mean /wait? And if you're using start, I would use
the title quotes even if you don't have a title, as I've seen instances
where it will fail without it. i.e. start "" /wait notepad.exe


Terry R.

Gee . . . That's a good question. I use to know what the switch /w was
but it's been 8 years and I forgot. OK, I see now. It must be the same as
/wait. I have a few versions of this and the ones with the /w holds the
DOS box
open till notepad sends it to the printer and deletes "Listing" from the
temp folder. If I leave out the /p then it
hold the DOS box open till I close notepad. I usualy don't use the /w I
use this one . . .

@echo off dir %1 /-p /o:gn > "%1%\DirList" start notepad "%1%\DirList"
exit Which has a title "DirList"

It's hard to keep up with this stuff when your real job is not with
computers.
____ _
| __\_\_o____/_|
<[___\_\_-----<------------------<No Spam Please><
| o'

The title needs to be right after start, i.e. start "title". In a command
prompt, type start /? and you'll get a list of values.


Terry R.
 
D

dennis

almostbob said:
in which the title prompt is clearly marked as optional

start ["title"]

If the path contains empty spaces, it needs to be surrounded by quotes,
and in that case you need to supply an empty title. For instance:

start "c:\my folder\program.exe"
should be: start "" "c:\my folder\program.exe"

otherwise it will be confused and think the path is the title.
 
T

Terry R.

The date and time was Saturday, April 11, 2009 7:49:57 AM, and on a
whim, almostbob pounded out on the keyboard:
in which the title prompt is clearly marked as optional

start ["title"]
The date and time was Friday, April 10, 2009 5:46:39 PM, and on a whim,
John pounded out on the keyboard:

@echo off dir %1 /-p /o:gn > "%temp%\Listing" start /w notepad /p
"%temp%\Listing" del "%temp%\Listing" exit
Hi John,

What is /w? Did you mean /wait? And if you're using start, I would use
the title quotes even if you don't have a title, as I've seen instances
where it will fail without it. i.e. start "" /wait notepad.exe


Terry R.

Gee . . . That's a good question. I use to know what the switch /w was
but it's been 8 years and I forgot. OK, I see now. It must be the same as
/wait. I have a few versions of this and the ones with the /w holds the
DOS box
open till notepad sends it to the printer and deletes "Listing" from the
temp folder. If I leave out the /p then it
hold the DOS box open till I close notepad. I usualy don't use the /w I
use this one . . .

@echo off dir %1 /-p /o:gn > "%1%\DirList" start notepad "%1%\DirList"
exit Which has a title "DirList"

It's hard to keep up with this stuff when your real job is not with
computers.
____ _
| __\_\_o____/_|
<[___\_\_-----<------------------<No Spam Please><
| o'

The title needs to be right after start, i.e. start "title". In a command
prompt, type start /? and you'll get a list of values.


Terry R.

Not what I was speaking about. Look where John placed it and then you'll
understand. Dennis explained the other issue in which case it's NOT
optional.


Terry R.
 
C

C Jones

Hi,
I tried this, and now I can print the directory, but somehow it changed
something in Windows Explorer so when you click on a file to open it instead
it goes to the Search screen. Any ideas?
Thanks.

Don Schmidt said:
This suggestion may or may not have been offered.

The Microsoft site below explains how to offer a Print directory to the
Right click menu. Works well in XP.

http://support.microsoft.com/support/kb/articles/q272/6/23.asp


--
Don - Windows XP Pro® SP 3
Vancouver, USA
 
T

Terry R.

The date and time was Tuesday, April 14, 2009 11:43:01 AM, and on a
whim, C Jones pounded out on the keyboard:
Hi,
I tried this, and now I can print the directory, but somehow it changed
something in Windows Explorer so when you click on a file to open it instead
it goes to the Search screen. Any ideas?
Thanks.

Hi C,

Sounds like you may have incorrectly followed the instructions and
possibly modified Open rather than created a new action.

Terry R.
 
C

C Jones

Thank you!! All seems to be well now!
I see you are in Vancouver, so am I. Do you do computer work
professionally...for hire?
C Jones
 
A

Al Falfa

Don said:
... how to offer a Print directory to the Right click menu ...
http://support.microsoft.com/kb/272623

C said:
I tried this, and now I can print the directory, but somehow it
changed something in Windows Explorer so when you click on a file to
open it instead it goes to the Search screen ...
Sounds like you may have incorrectly followed the instructions and
possibly modified Open rather than created a new action.

Known bug in XP. 'If you double-click a drive or folder, Search Companion
may start and the drive or folder may not open. If you configure settings
for other actions associated with drives or file folders (for example,
Open Command Window Here or Print Directory Listing) ...'
http://support.microsoft.com/kb/321186
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top