Printing Folder Contents

  • Thread starter Thread starter Randy
  • Start date Start date
R

Randy

I know you can print a folder's contents from the cmd line by typing: "C:\
dir > prn" or "C:\ dir > lpt1". Can you do the same kind of thing for a
printer connected via a USB port?
 
Randy said:
I know you can print a folder's contents from the cmd line by typing: "C:\
dir > prn" or "C:\ dir > lpt1". Can you do the same kind of thing for a
printer connected via a USB port?

I'm not familiar with the "port" name of a usb connected device. I
don't have one so can't look for you. Look at the printer properties
for that printer and see if there are names analogous to LPT1:, FILE:,
etc. It could be with USB connections there is no such thing. I don't
know.

If there are none, and even if you find out that what the name is and it
won't work in a command prompt box, all is not lost. Direct output of
the dir command to a file, then print the file with a program like
Notepad, Wordpad, or something. For example, to print to a file called
'filename.txt' in the current directory:

dir > filename.txt
 
Hi, Randy.

Have a look at this KB article:

HOW TO: Add a "Print Directory" Feature for Folders in Windows XP
http://support.microsoft.com/?kbid=321379

This works well for me.

As to your actual question: What happens if you try "> prn"? If "dir >
prn" works, you might also want to try "tree > prn". I think these do work
with USB, but it depends at least partly on the WinXP driver for your
specific printer make and model.

RC
 
In
Randy said:
I know you can print a folder's contents from the cmd line by typing:
"C:\ dir > prn" or "C:\ dir > lpt1". Can you do the same kind of
thing for a printer connected via a USB port?




Yes. Issue this command instead:

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.


Here are two other alternatives:

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

2. 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
 

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

Similar Threads


Back
Top