Question : Creating a batch file to print to network printers

I really need some help on this. I have searched all over the internet and cannot find the answer to this question. Maybe I'm not asking the right question. I would like to print a text file to all of my network printers by using a batch file. I have tried the net print command, but all that does is give you information on the printer queue and allow you to print jobs that are already spooled. I have also looked at the print command and I cannot get the file to print when I send it that way. For the print command I used "NET USE LPTx \\computername\sharename /PERSISTENT:YES" and then "print /d:lpt1 C:\test.txt" I get the message that it's being printed but it never prints. Any help would be greatly appreciated.

Nathan Brown

Answer : Creating a batch file to print to network printers

Are these printers Postscript perhaps?  Have you tried copying to the UNC, i.e.:

copy test.txt \\server\printershare

or as lrmoore suggests create what you want to send from a windows app suchas Word using a printer driver that will work on everything, e.g. HP Laserjet II or Laserjet 4 connected to FILE: then use

copy /b test.txt \\server\printershare

the /b being binary mode.

Maybe a

echo ^L > \\server\printershare might help too.

(press Control L, which is formfeed)

Steve
Random Solutions  
 
programming4us programming4us