Need to print contents of a folder

K

Keith

Hello,

I am surprised at the number of times I need to print a list of files in a
folder.

Usually, I make a list to document the folder's contents. In the past, I've
done this in the DOS window by using the dir command and directing the output
to a text file. I then open the text file and edit it in Word. I then copy
and paste it into the document where it is needed. That's the old fashioned
way. Isn't there a way to do this in Windows so I can save the hassle
associated with the old DOS approach?

Keith
 
L

Leonard Grey

It's not 'old fashioned'....it's classic. Timeless, ageless, elegant.

To turn your back on this beloved gem, and if a PrintScreen isn't
high-tech enough for you, you'll need to look for third-party software
on the web.

But remember this: One day, your grandchildren (may you have many) will
call today "the olden days."
 
A

Anna

Keith said:
Hello,

I am surprised at the number of times I need to print a list of files in a
folder.

Usually, I make a list to document the folder's contents. In the past,
I've
done this in the DOS window by using the dir command and directing the
output
to a text file. I then open the text file and edit it in Word. I then
copy
and paste it into the document where it is needed. That's the old
fashioned
way. Isn't there a way to do this in Windows so I can save the hassle
associated with the old DOS approach?

Keith


Keith:
Take a look here...
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q321379

There are also many third-party programs (usually) freebies available as a
Google search will reveal.
Anna
 
S

smlunatick

Hello,

I am surprised at the number of times I need to print a list of files in a
folder.  

Usually, I make a list to document the folder's contents.  In the past,I've
done this in the DOS window by using the dir command and directing the output
to a text file.  I then open the text file and edit it in Word. I then copy
and paste it into the document where it is needed. That's the old fashioned
way.  Isn't there a way to do this in Windows so I can save the hassle
associated with the old DOS approach?

Keith

You can modify the following:

*****************************************************************************************
@echo Directory and sub-directory file listing dump by
RenegadeMinds.com.
@echo Visit http://Renegademinds.com for more Windows tips and tricks
@echo and free software applications.
@echo
==================================================================
@echo
==================================================================
@echo Save this file as getDirList.bat in your SendTo directory.
@echo SendTo is under Documents and Settings in each user's directory.
@echo Right-click on any directory in Windows Explorer and choose
@echo Send To - getDirList.bat
@echo
==================================================================
@echo
==================================================================
@echo Dumping directory listing to c:\dirListing.txt
@echo (This may take some time for large directory trees.)
@REM the /A switch lists all hidden and system files as well.
@REM the /S switch lists all subdirectories and their contents.
@dir %1 /A /S > c:\dirListing.txt
@echo Opening c:\dirListing.txt in Notepad (Close notepad to delete
file)
@notepad c:\dirListing.txt
@echo Deleting c:\dirListing.txt
@Del c:\dirListing.txt
@pause

***********************************************************************************************

There is nothing better than the old "DOS" method.
 
K

Ken Blake, MVP

Hello,

I am surprised at the number of times I need to print a list of files in a
folder.

Usually, I make a list to document the folder's contents. In the past, I've
done this in the DOS window by using the dir command and directing the output
to a text file. I then open the text file and edit it in Word. I then copy
and paste it into the document where it is needed. That's the old fashioned
way. Isn't there a way to do this in Windows so I can save the hassle
associated with the old DOS approach?


Here are four ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and put it
in any folder you want)

Then open notepad, open tempfilename, and print it from there.

2. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder
and select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379 and
follow the instructions there.

4. Download and use any of the several freeware/shareware utilities
that can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
B

Bruce Chambers

Keith said:
Hello,

I am surprised at the number of times I need to print a list of files in a
folder.

Usually, I make a list to document the folder's contents. In the past, I've
done this in the DOS window by using the dir command and directing the output
to a text file. I then open the text file and edit it in Word. I then copy
and paste it into the document where it is needed. That's the old fashioned
way. Isn't there a way to do this in Windows so I can save the hassle
associated with the old DOS approach?

Keith


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://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
 
S

sandy58

Hello,

I am surprised at the number of times I need to print a list of files in a
folder.  

Usually, I make a list to document the folder's contents.  In the past,I've
done this in the DOS window by using the dir command and directing the output
to a text file.  I then open the text file and edit it in Word. I then copy
and paste it into the document where it is needed. That's the old fashioned
way.  Isn't there a way to do this in Windows so I can save the hassle
associated with the old DOS approach?

Keith

Techsmith SnagIt?
 
K

Keith

Hi Leonard.
Actually, I do tell the youngins how valuable DOS can be.
Thank you for your comment.
Keith
 
K

Ken Blake, MVP

Hi Ken,
Thank you,
This is helpful.


Am I the Ken you are replying to? If so, you're welcome--glad to help.
But in the future, please always quote the message you are replying
to, as I did yours above.
 

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