Printing Contents of Dir

  • Thread starter Thread starter Scott
  • Start date Start date
Yes there is. On the Dos prompt, use this:
Go to the directory you want to print out(Make shure, a
printer is connected to LPT1):

Type in the following command:
dir > test | copy /b test LPT1

^Thats it. If you want to use another printer, not
connected to LPT1, you must write a litte batch file wher
you use the "net use" command.Here an example:

dir>test
net use LPT1 \\<yourserver>\<yourprinter>
copy /b test LPT1
net use /del LPT1

Here you can use every printer on your system. DOnt
forgeet the last command, that will map LPT1 back to its
original.
Kind regards
Dietmar
 
Back
Top