Dir In Dos Mode To Printer

  • Thread starter Thread starter marvo
  • Start date Start date
M

marvo

In the old DOS mode it was easy to send the results of the DIR
command to my printer by dir |prt or dir |lpt using the "pipe".
Can this be done in XP?
 
A quick way to achieve a similar result is:
1. Enter command mode (Run / type "cmd" / enter)
2. Change to the directory that you want to print. (with the CD command)
3. Type "dir > C:\sample.txt" (without the quotes) You can include the
pathname of the text file if you would like it to appear in a different
directory.
4. Exit command mode.
5. Open and print the text withing XP.
 
Oops! Number 5 should read "Open and print the text file within XP".
Double-clicking on it should open it with Notepad.
 
Does not seem to work. I must be doing something wrong.
I thought the ">" will would write it to a file while the "|" would
send it to a file. Thks for the response. marvo
 

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

Back
Top